Struct ModelLight
Jump to navigation
Jump to search
Field | Type | Description |
---|---|---|
omnidirectional | boolean? = false |
If the light is omnidirectional [lighting in all directions]. |
point | vector3🔗 | Vector from the origin to where the light source should face. If this light is omnidirectional then point refers to a position, otherwise it refers to a direction. |
ambientIntensity | number? = 0 |
Intensity of the ambient component of the light source. |
ambientColor | colorRGB?🔗 | Color of the ambient component of the light source (0-1). |
diffuseIntensity | number? = 0 |
Intensity of the direct component of the light source. |
diffuseColor | colorRGB?🔗 | Color of the direct component of the light source (0-1). |