OptionalattributesObject detailing the mapping of vertex shader attribute names to semantics SEMANTIC_*. This enables the engine to match vertex buffer data as inputs to the shader. Defaults to undefined, which generates the default attributes.
OptionalfragmentThe fragment shader code.
OptionalshaderThe language used by the shader source. Can be:
Defaults to SHADERLANGUAGE_GLSL.
Unique name for the shader. If a shader with this name already exists, it will be returned instead of a new shader instance.
OptionalvertexThe vertex shader code.
The description of the shader used by the ShaderMaterial.