API ReferenceSandbox
public sealed class Sandbox.SceneDirectionalLight : Sandbox.SceneLight
A directional scene light that is used to mimic sun light in a `Sandbox.SceneWorld`. Direction is controlled by this object's `Rotation`.
Constructors
Showing 1 constructors
public SceneDirectionalLight(Sandbox.SceneWorld sceneWorld, Rotation rotation, Color color)
No results match this filter.
Methods
Showing 1 methods
public void SetCascadeDistanceScale(float distance)
Set the max distance of the shadow cascade
No results match this filter.
Properties
Showing 3 properties
public int Sandbox.SceneDirectionalLight.ShadowCascadeCount { get; set; }
Control number of shadow cascades
public float Sandbox.SceneDirectionalLight.ShadowCascadeSplitRatio { get; set; }
public Color Sandbox.SceneDirectionalLight.SkyColor { get; set; }Obsolete
Ambient light color outside of all light probes.
Obsolete: Use AmbientLight Component or World.AmbientLightColor Instead.
No results match this filter.
Metadata
| Field | Value |
|---|---|
| Namespace | Sandbox |
| Type | class |
| Assembly | Sandbox.Engine |
| Doc ID | T:Sandbox.SceneDirectionalLight |