CustomMaterial

The CustomMaterial class describes a custom material shader.

Properties

This module exposes no properties.

Methods

MethodDescription

boolParameter

boolParameter(paramName: string): BoolValue

Returns the Boolean value indicated by the paramName argument. An exception is thrown when the identifier isn't found in the material.

See Also: CustomMaterial.setBoolParameter.

floatParameter

floatParameter(paramName: string): ScalarValue

Returns the ScalarValue value representing the shader parameter indicated by the paramName argument. An exception is thrown when the identifier isn't found in the material.

See Also: CustomMaterial.setFloatParameter.

setBoolParameter

setBoolParameter(paramName: string, source: BoolSignal): void

Specifies the value of a shader parameter indicated by the paramName argument. An exception is thrown when the identifier isn't found in the material.

See Also: CustomMaterial.boolParameter.

setFloatParameter

setFloatParameter(paramName: string, source: ScalarSignal): void

Specifies the value of the shader parameter indicated by the paramName argument. An exception is thrown when the identifier isn't found in the material.

See Also: CustomMaterial.floatParameter.

setTexture

setTexture(paramName: string, texture: TextureBase): void

Specifies the value of the shader parameter indicated by the paramName argument. An exception is thrown when the identifier isn't found in the material.