DocsGRADEReference

Sun Shafts

1 min read

On this page

God rays from the sun or from bright pixels, blocked by the scene geometry.

Studio categoryScene
Pipeline stageScene (scene-linear HDR, before the tonemapper)
Default position11 in its stage, shares a pass with the SceneLight group
Works inLive views only (viewports, PIE, games, Movie Render Queue): needs scene depth or the level
C++ / BlueprintFGradeLayer::Effects.SunShafts (FGradeSunShafts)

Manual: Sun Shafts. Every numeric parameter can be set at runtime with Set Layer Parameter using the path shown (see Animation).

Parameters

Screen-space light shafts (god rays) occluded by scene depth (scene effect).

ParameterBlueprint pathValuesDefaultDescription
EnabledEffects.SunShafts.Enabledon/offoffTurns this on or off (the other values are kept while it is off).
SourceEGradeShaftSourceSun
IntensityEffects.SunShafts.Intensity0..10040
ThresholdEffects.SunShafts.Threshold-4..82Brightness where pixels emit rays (EV above mid grey).
LengthEffects.SunShafts.Length0..10.5Ray length as a fraction of the screen, 0..1.
DecayEffects.SunShafts.Decay0..10.92Falloff along the ray, 0..1 (1 = no falloff).
TintEffects.SunShafts.Tint.R/G/B/Acolour(1, 0.85, 0.65)
Use Scene SunEffects.SunShafts.UseSceneSunon/offonUse the brightest directional light for the sun (else Atmosphere's / this SunDirection).
Sun DirectionEffects.SunShafts.SunDirection.X/Y/Zvector (X, Y, Z)(-0.5, 0.3, 0.4)Direction TOWARDS the sun in world space.
Sky OnlyEffects.SunShafts.SkyOnlyon/offonOnly the sky emits (depth at the far plane).

Enumerations

Shaft Source (EGradeShaftSource)

ValueMeaning
SunRays from the sky / bright pixels towards the sun position on screen.
Bright PixelsRays from every bright pixel towards the screen centre (no sun needed).

Generated from the GRADE C++ headers. Back to the reference index.