Optional
attributesObject 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.
Optional
fragmentThe fragment shader code.
Optional
shaderThe 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.
Optional
vertexThe vertex shader code.
The description of the shader used by the ShaderMaterial.