Properties

PropertyDescription

diffuse (inherited from MaterialBase)

(get) diffuse: TextureBase (set) diffuse: TextureBase

Specifies the texture that forms the basis of this material.

diffuseTextureTransform (inherited from MaterialBase)

(get) transform: TextureTransform (set) transform: TextureTransformSignal

Specifies the coordinates transform of the diffuse texture of this material.

doubleSided (inherited from MaterialBase)

(get) doubleSided: BoolValue (set) doubleSided: BoolSignal

Indicates whether the material can be seen from both sides when rendering the scene.

Note: When FALSE, only the side specified by object's Cull Mode is rendered.

name (inherited from MaterialBase)

(get) name: String (set) (Not Available)

Specifies the unique identifier for the material name. This value is specified in AR Studio at design time.

See Also: MaterialsModule.get.

opacity (inherited from MaterialBase)

(get) opacity: ScalarValue (set) opacity: ScalarSignal

Specifies a number between 0.0 and 1.0 indicating the opacity, or alpha component, of the material. 0 is transparent and 1 is opaque.

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.