API ReferenceSandbox
public class Sandbox.DirectionalLight : Sandbox.Light
A directional light that casts shadows, like the sun.
Constructors
Showing 1 constructors
public DirectionalLight()
No results match this filter.
Methods
Showing 3 methods
protected virtual Sandbox.SceneLight CreateSceneObject()
protected virtual void DrawGizmos()
protected virtual void OnAwake()
No results match this filter.
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.
public Sandbox.DirectionalLight.CascadeVisualizer Sandbox.DirectionalLight.Visualizer { get; set; }
No results match this filter.
Metadata
| Field | Value |
|---|---|
| Namespace | Sandbox |
| Type | class |
| Assembly | Sandbox.Engine |
| Doc ID | T:Sandbox.DirectionalLight |