Type Alias: LightingUniforms
LightingUniforms =
object
Defined in: modules/lighting/lights/lighting.ts:125
Fully normalized uniform values produced by the lighting shader module.
Properties
ambientColor
ambientColor:
Readonly<NumberArray3>
Defined in: modules/lighting/lights/lighting.ts:135
Accumulated ambient color converted to normalized shader-space RGB.
areaLightCount
areaLightCount:
number
Defined in: modules/lighting/lights/lighting.ts:138
areaLights
areaLights: readonly
AreaLightUniform[]
Defined in: modules/lighting/lights/lighting.ts:139
directionalLightCount
directionalLightCount:
number
Defined in: modules/lighting/lights/lighting.ts:129
Number of packed directional lights in the lights array.
enabled
enabled:
number
Defined in: modules/lighting/lights/lighting.ts:127
1 when lighting is enabled, otherwise 0.
lights
lights:
ReadonlyArray<LightingLightUniform>
Defined in: modules/lighting/lights/lighting.ts:137
Packed trailing array of non-ambient light structs.
pointLightCount
pointLightCount:
number
Defined in: modules/lighting/lights/lighting.ts:131
Number of packed point lights in the lights array.
spotLightCount
spotLightCount:
number
Defined in: modules/lighting/lights/lighting.ts:133
Number of packed spot lights in the lights array.