API

Function setStandardLightmapTexture

  • Set the lightmap texture on mat. Added to the final color by default, or multiplied into it when mat.useLightmapAsShadowmap is true. Reads mat.lightmapLevel for intensity and mat.lightmapCoordIndex to select UV1 (0) or UV2 (1, the BJS default). A texture with uAng === Math.PI is sampled V-flipped. Registers the lightmap extension globally (idempotent). Call before the scene is first built.

    Parameters

    Returns void