Contents

init(layers:)

Creates a spot 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 a shadow