Contents

init(layers:)

Creates a directional light shadow that accepts shadow casters from the specified layers.

Declaration

init(layers: RenderLayer.Set? = nil)

Parameters

  • layers:

    The layers of entities that cast shadows from this light. Pass nil (the default) to inherit Layers, or an empty set to disable shadow casting entirely.

See Also

Creating the shadow