Contents

swizzle

Channel swizzle to use when RealityKit reads or samples from the texture.

Declaration

var swizzle: MTLTextureSwizzleChannels

Discussion

The default value performs no swizzle, sampling red from the texture’s red channel, green from the texture’s green channel, blue from the texture’s blue channel, and alpha from the texture’s alpha channel.