API

Interface PbrLightmapOptions

Options for setPbrLightmap.

interface PbrLightmapOptions {
    coordIndex?: 0 | 1;
    gamma?: boolean;
    level?: number;
    useAsShadowmap?: boolean;
}
Index
coordIndex?: 0 | 1

UV set to sample: 0 = TEXCOORD_0, 1 = TEXCOORD_1. Defaults to 1 (BJS convention).

gamma?: boolean

Decode the sample from sRGB to linear (BJS GAMMALIGHTMAP, i.e. Texture.gammaSpace).

level?: number

Intensity multiplier applied to the sample (BJS Texture.level). Defaults to 1.

useAsShadowmap?: boolean

Multiply the shaded colour instead of adding to it (BJS useLightmapAsShadowmap).