Scripting API
MaterialsModule
ComposedMaterial

ComposedMaterial

The ComposedMaterial class encapsulates patch asset materials.



Inherits From : MaterialBase

Example

Properties

This module exposes no properties.

Methods

MethodDescription

setParameter

setParameter(parameterName: string, signal: ISignal | Transform | WorldTransform): void


Assigns a signal to the specified patch asset parameter.

setShaderCode

setShaderCode(shaderCodeAsset: ShaderCode, interfaceName?: string): void


Sets the given shaderCodeAsset for the composed material with
the interface name defaulting to 'main'.