The Materials
module provides access to the materials in an effect.
const Materials = require('Materials'); const Scene = require('Scene'); const redMaterial = Materials.get('redMaterial'); const plane = Scene.root.find('plane'); plane.material = redMaterial;
This class exposes no properties.
Method | Description |
---|---|
|
Returns a An exception is thrown when the identifier isn't found in the project. See Also: |
Class | Description |
---|---|
The | |
The | |
The | |
The | |
The | |
The | |
The | |
The | |
The |