skyLightContrib
material
skyLightContrib
RayTK
v0.42
A material element that acts as a basic pseudo directional light.
It applies lighting based on the direction that surfaces are facing. Unlike the main lighting system, it does not support shadows or other lighting behavior. It is a cheap way to add some secondary coloration to surfaces.
It is equivalent to the sky lighting feature in basicMat
.
Parameters
Name | Description | Regular Handling | Read-Only Handling |
---|---|---|---|
Color | Runtime | Baked | |
Level | Runtime | Baked | |
Direction | The direction from which the “light” comes from. | Runtime | Baked |
Use Color | Whether to produce color or just a brightness value. | ||
Rotate | Runtime | Baked |
Inputs
-
Direction Field
: (optional)- Coordinate Types:
float
vec2
vec3
vec4
- Context Types:
MaterialContext
- Return Types:
float
vec4
- Coordinate Types:
-
Rotate Field
: (optional)- Coordinate Types:
float
vec2
vec3
vec4
- Context Types:
MaterialContext
- Return Types:
float
vec4
- Supports Variables From Inputs:
directionField
- Coordinate Types:
-
Color Field
: (optional)- Coordinate Types:
float
vec2
vec3
vec4
- Context Types:
MaterialContext
- Return Types:
float
vec4
- Supports Variables From Inputs:
directionField
rotateField
- Coordinate Types: