This class works just like ShaderMaterial, except that definitions of built-in uniforms and attributes are not automatically prepended to the GLSL shader code.
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
class ShaderMaterialclass Materialclass Objecttrait Anyclass Objecttrait Matchableclass AnyShow all
Members list
Value members
Concrete fields
This flag can be used for type testing.
This flag can be used for type testing.
Attributes
Inherited fields
Attributes
- Inherited from:
- Material
Defines whether this material supports clipping; true to let the renderer pass the clippingPlanes uniform.
Defines whether this material supports clipping; true to let the renderer pass the clippingPlanes uniform.
Attributes
- Inherited from:
- ShaderMaterial
When the rendered geometry doesn't include these attributes but the material does, these default values will be passed to the shaders.
When the rendered geometry doesn't include these attributes but the material does, these default values will be passed to the shaders.
Attributes
- Inherited from:
- ShaderMaterial
Defines custom constants using #define directives within the GLSL code for both the vertex shader and the fragment shader; each key/value pair yields another directive.
Defines custom constants using #define directives within the GLSL code for both the vertex shader and the fragment shader; each key/value pair yields another directive.
Attributes
- Inherited from:
- ShaderMaterial
Attributes
- Inherited from:
- Material
This object allows to enable certain WebGL 2 extensions.
Defines whether the material color is affected by global fog settings; true to pass fog uniforms to the shader.
Defines whether the material color is affected by global fog settings; true to pass fog uniforms to the shader.
Attributes
- Inherited from:
- ShaderMaterial
Fragment shader GLSL code. This is the actual code for the shader.
Fragment shader GLSL code. This is the actual code for the shader.
Attributes
- Inherited from:
- ShaderMaterial
Defines the GLSL version of custom shader code.
If set, this calls gl.bindAttribLocation to bind a generic vertex index to an attribute variable.
If set, this calls gl.bindAttribLocation to bind a generic vertex index to an attribute variable.
Attributes
- Inherited from:
- ShaderMaterial
This flag can be used for type testing.
Defines whether this material uses lighting; true to pass uniform data related to lighting to this shader.
Defines whether this material uses lighting; true to pass uniform data related to lighting to this shader.
Attributes
- Inherited from:
- ShaderMaterial
Controls line thickness for lines.
Attributes
- Inherited from:
- Material
Attributes
- Inherited from:
- Material
Attributes
- Inherited from:
- Material
Attributes
- Inherited from:
- Material
Attributes
- Inherited from:
- Material
Attributes
- Inherited from:
- Material
Attributes
- Inherited from:
- Material
An object specifying the uniforms to be passed to the shader code; keys are uniform names, values are definitions of the form { value: 1.0 } where value is the value of the uniform.
An object specifying the uniforms to be passed to the shader code; keys are uniform names, values are definitions of the form { value: 1.0 } where value is the value of the uniform.
Attributes
- Inherited from:
- ShaderMaterial
An array holding uniforms groups for configuring UBOs.
Can be used to force a uniform update while changing uniforms in onBeforeRender.
Can be used to force a uniform update while changing uniforms in onBeforeRender.
Attributes
- Inherited from:
- ShaderMaterial
Attributes
- Inherited from:
- Material
Vertex shader GLSL code. This is the actual code for the shader.
Vertex shader GLSL code. This is the actual code for the shader.
Attributes
- Inherited from:
- ShaderMaterial
Renders the geometry as a wireframe.
Controls the thickness of the wireframe.