Type Alias: LightingProps
LightingProps =
object
Defined in: modules/lighting/lights/lighting.ts:81
Public JavaScript props accepted by the lighting shader module.
Properties
ambientLight?
optionalambientLight?:AmbientLight
Defined in: modules/lighting/lights/lighting.ts:92
Legacy ambient-light prop.
Deprecated
Use lights with {type: 'ambient', ...} entries instead.
directionalLights?
optionaldirectionalLights?:DirectionalLight[]
Defined in: modules/lighting/lights/lighting.ts:107
Legacy directional-light prop.
Deprecated
Use lights with {type: 'directional', ...} entries instead.
enabled?
optionalenabled?:boolean
Defined in: modules/lighting/lights/lighting.ts:83
Enables or disables lighting calculations for the module.
lights?
optionallights?:Light[]
Defined in: modules/lighting/lights/lighting.ts:87
Preferred API for supplying mixed ambient, point, spot, directional, rectangle, and disk lights.
pointLights?
optionalpointLights?:PointLight[]
Defined in: modules/lighting/lights/lighting.ts:97
Legacy point-light prop.
Deprecated
Use lights with {type: 'point', ...} entries instead.
spotLights?
optionalspotLights?:SpotLight[]
Defined in: modules/lighting/lights/lighting.ts:102
Legacy spot-light prop.
Deprecated
Use lights with {type: 'spot', ...} entries instead.
useByteColors?
optionaluseByteColors?:boolean
Defined in: modules/lighting/lights/lighting.ts:85
When true, light colors are interpreted as byte-style 0-255 values.