Api Sandbox SceneDirectionalLight
class

SceneDirectionalLight

public sealed class SceneDirectionalLight : SceneLight

A directional scene light that is used to mimic sun light in a SceneWorld. Direction is controlled by this object's Rotation.

Constructors

SceneDirectionalLight(SceneWorld sceneWorld, Rotation rotation, Color color)

Properties

Name Type Description
SkyColor Color Ambient light color outside of all light probes.
ShadowCascadeCount Int32 Control number of shadow cascades
ShadowCascadeSplitRatio Single

Methods

Void SetCascadeDistanceScale(Single distance)

Set the max distance of the shadow cascade

Assembly: Sandbox.Engine Namespace: Sandbox Full Name: Sandbox.SceneDirectionalLight