API ReferenceSandbox
SceneDirectionalLightclass
A directional scene light that is used to mimic sun light in a `Sandbox.SceneWorld`. Direction is controlled by this object's `Rotation`.
Constructors1
Showing 1 constructors
public SceneDirectionalLight(Sandbox.SceneWorld sceneWorld, Rotation rotation, Color color)
| Parameter | Type | Description |
|---|---|---|
| sceneWorld | SceneWorld | — |
| rotation | Rotation | — |
| color | Color | — |
No results match this filter.
Methods1
Showing 1 methods
public void SetCascadeDistanceScale(float distance)
Set the max distance of the shadow cascade
| Parameter | Type | Description |
|---|---|---|
| distance | float | — |
Returns:
void—No results match this filter.
Properties3
Showing 3 properties
public int Sandbox.SceneDirectionalLight.ShadowCascadeCount { get; set; }
Control number of shadow cascades
Returns:
int—public float Sandbox.SceneDirectionalLight.ShadowCascadeSplitRatio { get; set; }
Returns:
float—public Color Sandbox.SceneDirectionalLight.SkyColor { get; set; }
Ambient light color outside of all light probes.
Obsolete: Use AmbientLight Component or World.AmbientLightColor Instead.
No results match this filter.