Doc > Nodes > OBJ > SpotLight
Creates a spot light.
Description
no description
Parameters
Name | Type | Description |
---|---|---|
keepPosWhenParenting | boolean | toggle on to keep world position when adding a parent or removing from one |
rotationOrder | integer | rotation order |
t | vector3 | translate |
r | vector3 | rotation |
s | vector3 | scale |
scale | float | scale |
matrixAutoUpdate | boolean | set for the matrix to be updated every frame |
color | color | light color |
intensity | float | light intensity |
angle | float | angle |
penumbra | float | penumbra |
decay | float | decay |
distance | float | distance |
showHelper | boolean | toggle on to show helper |
helperSize | float | helper size |
castShadow | boolean | toggle on to cast shadows |
shadowAutoUpdate | boolean | toggle off if the shadows do not need to be regenerated |
shadowUpdateOnNextRender | boolean | press button to update the shadows on next render |
shadowRes | vector2 | shadows res |
shadowBias | float | shadows bias |
shadowNear | float | shadows near |
shadowFar | float | shadows far |
shadowRadius | float | shadows radius. This only has effect when setting the ROP/WebGLRenderer's shadowMapType to VSM |
tvolumetric | boolean | toggle on to add a volumetric effect to the spotlight |
volAttenuation | float | volumetric attenuation |
volAnglePower | float | volumetric angle power |