spotLight
light
spotLight
RayTK
v0.40
Cone-shaped spotlight.
This is similar to the Light COMP in spotlight mode.
Parameters
Name | Description | Regular Handling | Read-Only Handling |
---|---|---|---|
Intensity | Runtime | Baked | |
Color | Runtime | Baked | |
Position | The position of the tip of the light cone. | Runtime | Baked |
Direction | The direction which the cone faces, as a vector. | Runtime | Baked |
Cone Angle | The width of the cone. | Runtime | Baked |
Cone Delta | The amount of blending between the inside and outside of the cone. | Runtime | Baked |
Attenuated | Whether to adjust the amount of light depending on distance. | Runtime | Semi-Baked |
Attenuation Start | The start of the blending range, inside which the light will be at full intensity. | Runtime | Baked |
Attenuation End | The end of the blending range, outside which the light will be at zero intensity. | Runtime | Baked |
Rotate | Runtime | Baked | |
Enable Shadow | Runtime | Semi-Baked |
Inputs
-
Color Field
: (optional) Optional field that controls the color of the light.- Coordinate Types:
vec3
- Context Types:
LightContext
- Return Types:
float
vec4
- Coordinate Types:
-
Attenuation Field
: (optional) Optional function that controls the color/intensity of the light based on the attenuation distance.- Coordinate Types:
float
- Context Types:
LightContext
- Return Types:
float
vec4
- Supports Variables From Inputs:
colorField
- Coordinate Types: