Documentation / @ripl/3d / LIGHT_TYPE_CODE
Variable: LIGHT_TYPE_CODE ​
constLIGHT_TYPE_CODE:object
Defined in: 3d/src/core/uniforms.ts:28
Numeric discriminators for each light type, shared by the packer and the shader.
Type Declaration ​
ambient ​
readonlyambient:0=0
Uniform light with no direction.
directional ​
readonlydirectional:2=2
Parallel light with a direction but no position.
hemisphere ​
readonlyhemisphere:1=1
Two-colour sky/ground gradient light.
point ​
readonlypoint:3=3
Positional light radiating in every direction.
spot ​
readonlyspot:4=4
Positional light confined to a cone.