Api Sandbox DirectionalLight
class

DirectionalLight

public class DirectionalLight : Light

A directional light that casts shadows, like the sun.

Constructors

DirectionalLight()

Properties

Name Type Description
SkyColor Color 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.
ShadowCascadeCount Int32 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.
ShadowCascadeSplitRatio Single Controls how cascades 2+ are distributed between the first cascade boundary and the far clip. 0 is uniform, 1 is fully logarithmic.
Visualizer CascadeVisualizer
Assembly: Sandbox.Engine Namespace: Sandbox Full Name: Sandbox.DirectionalLight