Protocol

HasDirectionalLight

An interface that defines a directional light source component.

Declaration

protocol HasDirectionalLight

Topics

Getting the Directional Light

var light: DirectionalLightComponent

A directional light component for the entity.

struct DirectionalLightComponent

A component that defines a directional light source.

Specifying the Shadow

var shadow: DirectionalLightComponent.Shadow?

The shadow settings for a directional light.

Relationships

Inherits From

Conforming Types

See Also

Configuring the Directional Light

var light: DirectionalLightComponent

A directional light component for the entity.

struct DirectionalLightComponent

A component that defines a directional light source.

var shadow: DirectionalLightComponent.Shadow?

The shadow cast by a directional light.