Structure

DirectionalLightComponent.Shadow

Shadow characteristics for a directional light.

Declaration

Topics

Creating the Shadow

init()

Creates a directional light shadow.

init(maximumDistance: Float, depthBias: Float)

Creates a directional light shadow with a maximum distance and depth bias.

Configuring the Shadow

var maximumDistance: Float

The maximum distance for the shadow.

var depthBias: Float

The depth bias for the shadow.

Registering a Component Type

static func registerComponent()

Registers a new component type.

Relationships

Conforms To

See Also

Setting Intensity and Shadows

var intensity: Float

The intensity of the directional light, measured in lumen per square meter.

var isRealWorldProxy: Bool

A Boolean that you use to control whether the directional light operates as a proxy for a real-world light.