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.

Beta
var isRealWorldProxy: Bool

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

Beta

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software