UEConsole Commands
VariableConsole VariableRenderer

r.Shadow.Virtual.SMRT.RayLengthScaleDirectional

r.Shadow.Virtual.SMRT.RayLengthScaleDirectional is a console variable in Unreal Engine 5 (UE5). See what r.Shadow.Virtual.SMRT.RayLengthScaleDirectional does, its values, and how to use this cvar in the Unreal console below.

Category: Renderer · Namespace: r

Help

Length of ray to shoot for directional lights, scaled by distance to camera.Shorter rays limit the screen space size of shadow penumbra. Longer rays require more samples to avoid shadows disconnecting from contact points.

Usage

Unreal console (open with ~)
> r.Shadow.Virtual.SMRT.RayLengthScaleDirectional 1

Console variables take a value. Replace 1 with the setting you need. Run it with no value to print the current one.

Related in r