SpotLightComponent.ProjectiveTexture
A component that specifies a map of a projective texture or cookie light to use for shadow mapping.
Declaration
struct ProjectiveTextureOverview
Cookie lights or projective lights in RealityKit are essentially a light mask added to our SpotLights that allows us to create a shadow that can illuminate an area uniformly by modifying the characteristics of the light. To illustrate the concept, we can think of a piece of gelatin paper wrapped around a light. The final illumination of the objects lit by this light will be a combination of the characteristics of the color of the light and the paper.