Static Ray
The StaticRayLayer creates static stylized rays with advanced fading and variation controls. Use this layer for effects that require consistent, non-animated rays with precise control over their appearance.
Common Uses:
Sunlight streaks in a dusty room
Stylized light rays for stained glass windows
Static magical or sci-fi beams
Variables
sceneDepthFade
bool
Enable fading based on scene geometry behind the effect.
sceneDepthFadeStart
float
Start distance for scene depth-based fading.
sceneDepthFadeEnd
float
End distance for scene depth-based fading.
cameraDepthFade
bool
Enable fading based on the camera’s depth buffer.
cameraDepthFadeStart
float
Start distance for camera depth-based fading.
cameraDepthFadeEnd
float
End distance for camera depth-based fading.
cameraDistanceFade
bool
Enable fading based on distance from the camera.
cameraDistanceFadeStart
float
Start distance for camera distance-based fading.
cameraDistanceFadeEnd
float
End distance for camera distance-based fading.
objectDistanceFade
bool
Enable fading based on proximity to the object.
objectDistanceFadeStart
float
Start distance for object-relative fading.
objectDistanceFadeEnd
float
End distance for object-relative fading.
angleBasedFade
bool
Enable fading based on the angle between the camera and surface.
angleFadeStart
float
Start angle for angle-based fading.
angleFadeEnd
float
End angle for angle-based fading.
Inherits posterize, noise variation, sine variation, repeat, color, mesh, etc. from LumenEffectLayer.
Example:
Use StaticRayLayer for static shafts of light in a cathedral.
Combine with fading options to make rays disappear as the camera moves away.
Last updated