s&box docs

public class Sandbox.DirectionalLight : Sandbox.Light

A directional light that casts shadows, like the sun.

Constructors

Showing 1 constructors

Methods

Showing 3 methods

protected virtual Sandbox.SceneLight CreateSceneObject()

protected virtual void DrawGizmos()

protected virtual void OnAwake()

Properties

Showing 4 properties

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.

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.

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.

Metadata

FieldValue
NamespaceSandbox
Typeclass
AssemblySandbox.Engine
Doc IDT:Sandbox.DirectionalLight

On this page