One Logo Pool Ball
RealityFoundation · IOS API REFERENCE

CustomMaterial.Program.Descriptor

struct · iOS 18.0+ · SDK 27.1

struct Descriptor

An object that specifies all parameters necessary to initialize `CustomMaterial` programs

Members (5)

get · iOS 18.0+

lightingModel

TypeScript
get lightingModel(): CustomMaterial_LightingModel
Swift declaration
var lightingModel: CustomMaterial.LightingModel

Modes that describe how materials using created `CustomMaterial.Program` will interact with light within the RealityKit scene. Default value is true.

set · iOS 18.0+

lightingModel

TypeScript
set lightingModel(value: CustomMaterial_LightingModel)
Swift declaration
var lightingModel: CustomMaterial.LightingModel

Modes that describe how materials using created `CustomMaterial.Program` will interact with light within the RealityKit scene. Default value is true.

get · iOS 18.0+

blendMode

TypeScript
get blendMode(): (MaterialParameterTypes_BlendMode) | null
Swift declaration
var blendMode: MaterialParameterTypes.BlendMode?

Modes that describe how materials using the created `CustomMaterial.Program` will be blended with content behind them. Default value is nil, which will cause this material to render opaque, and not blend with background content.

set · iOS 18.0+

blendMode

TypeScript
set blendMode(value: (MaterialParameterTypes_BlendMode) | null)
Swift declaration
var blendMode: MaterialParameterTypes.BlendMode?

Modes that describe how materials using the created `CustomMaterial.Program` will be blended with content behind them. Default value is nil, which will cause this material to render opaque, and not blend with background content.

init · iOS 18.0+

init

TypeScript
static init(): CustomMaterial_Program_Descriptor
Swift declaration
init()

Skipped declarations

No declarations were skipped in this snapshot.

All RealityFoundation types →