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.