The Material object defines the appearance of a rendered object. It has a TechniqueParameters property and a meta property for additional information used by the renderers.
Required scripts
The Material object requires:
/*{{ javascript("jslib/material.js") }}*/
/*{{ javascript("jslib/utilities.js") }}*/
Summary
Creates and returns a Material object.
Syntax
var material = Material.create(graphicsDevice);
Summary
The TechniqueParameters object.
Syntax
material.techniqueParameters.materialColor = color;
Summary
The meta object. See the rendering documentation for valid values.
Syntax
material.meta.transparent = true;