MaterialsModule Module

The MaterialsModule class enables working with textures and making adjustments to qualities like opacity and reflectivity.

Usage

const Materials = require('Materials');

Properties

This class exposes no properties.

Methods

MethodDescription

get

get(materialName: string): MaterialBase

Returns a MaterialBase class that represents the material specified by the materialName parameter. The materials are defined in the AR Studio project.

An exception is thrown when the identifier isn't found in the project.

See Also: MaterialBase.name.

Classes

ClassDescription

BlendedMaterial

The BlendedMaterial class encapsulates materials blended from multiple textures.

ColorPaintMaterial

The ColorPaintMaterial class encapsulates a face-paint material.

DefaultMaterial

The DefaultMaterial class encapsulates an image-based material.

MaterialBase

The MaterialBase class exposes properties common to all material types.