One Logo Pool Ball
RealityFoundation · IOS API REFERENCE

SpotLightComponent.ProjectiveTexture

struct · iOS 27.0+ · SDK 27.1

struct ProjectiveTexture

A component that specifies a map of a projective texture or cookie light to use for shadow mapping. 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. Projective lights are available on devices with Apple6 GPU family feature support.

Members (7)

get · iOS 27.0+

coordinateTransform

TypeScript
get coordinateTransform(): MaterialParameterTypes_TextureCoordinateTransform
Swift declaration
var coordinateTransform: SpotLightComponent.ProjectiveTexture.TextureCoordinateTransform

The coordinate transform for the projective texture

set · iOS 27.0+

coordinateTransform

TypeScript
set coordinateTransform(value: MaterialParameterTypes_TextureCoordinateTransform)
Swift declaration
var coordinateTransform: SpotLightComponent.ProjectiveTexture.TextureCoordinateTransform

The coordinate transform for the projective texture

init · iOS 27.0+

init

TypeScript
static initTextureCoordinateTransform(texture: TextureResource, coordinateTransform: MaterialParameterTypes_TextureCoordinateTransform): SpotLightComponent_ProjectiveTexture
Swift declaration
init(texture: TextureResource, coordinateTransform: SpotLightComponent.ProjectiveTexture.TextureCoordinateTransform)

Creates a new instance with the specified texture and coordinate transform for scale and rotation

init · iOS 27.0+

init

TypeScript
static initTextureScale(texture: TextureResource, scale?: SDKHandle): SpotLightComponent_ProjectiveTexture
Swift declaration
init(texture: TextureResource, scale: SIMD2<Float> = [1.0, 1.0])

Creates a new instance with the specified texture and scale

get · iOS 27.0+

texture

TypeScript
get texture(): TextureResource
Swift declaration
var texture: TextureResource

The texture for the projective texture

set · iOS 27.0+

texture

TypeScript
set texture(value: TextureResource)
Swift declaration
var texture: TextureResource

The texture for the projective texture

init · iOS 27.0+

init

TypeScript
static initTexture(texture: TextureResource): SpotLightComponent_ProjectiveTexture
Swift declaration
init(texture: TextureResource)

Creates a new instance with the specified texture

Skipped declarations

No declarations were skipped in this snapshot.

All RealityFoundation types →