DirectionalLightclass
A directional light that casts shadows, like the sun.
Constructors1
Showing 1 constructors
public DirectionalLight()
No results match this filter.
Methods3
Showing 3 methods
protected virtual Sandbox.SceneLight CreateSceneObject()
protected virtual void DrawGizmos()
void—protected virtual void OnAwake()
void—No results match this filter.
Properties5
Showing 5 properties
public bool Sandbox.DirectionalLight.ContactShadows { get; set; }
Add small-scale screen-space contact shadows on top of the cascaded shadow maps. Captures fine contact detail the shadow maps miss, at some GPU cost.
bool—public int Sandbox.DirectionalLight.ShadowCascadeCount { get; set; }
Number of cascades to split the view frustum into for the whole scene dynamic shadow. More cascades result in better shadow resolution, but adds significant rendering cost. User settings will set a maximum.
int—public float Sandbox.DirectionalLight.ShadowCascadeSplitRatio { get; set; }
Controls how cascades 2+ are distributed between the first cascade boundary and the far clip. 0 is uniform, 1 is fully logarithmic.
float—public Color Sandbox.DirectionalLight.SkyColor { get; set; }
Color of the ambient sky color This is kept for long term support, the recommended way to do this is with an Ambient Light component.
public Sandbox.DirectionalLight.CascadeVisualizer Sandbox.DirectionalLight.Visualizer { get; set; }
No results match this filter.