axisLight
light
axisLight
RayTK
v0.42
Light that emits from along an axis, similar to an infinitely long tube light.
Parameters
Name | Description | Regular Handling | Read-Only Handling |
---|---|---|---|
Axis | Axis that the limit emits from. | Runtime | Semi-Baked |
| |||
Position | Position of the light. One axis of this won’t be used since the light is infinite along one axis. | Runtime | Baked |
Rotate | Rotates the light source. | Runtime | Baked |
Intensity | Brightness that is applied to the | Runtime | Baked |
Color | Color of the light. | Runtime | Baked |
Attenuated | Whether to limit the light range. | Runtime | Semi-Baked |
Attenuation Start | The distance at which the light starts to dim. | Runtime | Baked |
Attenuation End | The distance at which the light is fully dimmed. | Runtime | Baked |
Enable Shadow | Whether the light should produce shadows. | Runtime | Semi-Baked |
Inputs
-
Position Field
: (optional) Field offsets the position of the light. The coordinates that this field gets are the spot on the surface that the light is being calculated for.- Coordinate Types:
vec3
- Context Types:
LightContext
- Return Types:
vec4
- Coordinate Types:
-
Color Field
: (optional) Field controls the color of the light based on the position of surface hits where it is being applied. The resulting color is multiplied by the `Color` parameter and `Intensity`.- Coordinate Types:
vec3
- Context Types:
LightContext
- Return Types:
float
vec4
- Supports Variables:
lightdir
- Supports Variables From Inputs:
positionField
- Coordinate Types:
-
Attenuation Field
: (optional) Field/function that controls the slope and coloration of the attenuation rolloff is shaped. It can be used to make the light shift from one color to another, or to control the sharpness of the rolloff.- Coordinate Types:
float
- Context Types:
LightContext
- Return Types:
float
vec4
- Supports Variables:
lightdir
- Supports Variables From Inputs:
positionField
colorField
- Coordinate Types:
Variables
-
Light Direction
: