Constructor
new SolidColorMaterial(webglContext, optionsopt)
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
webglContext |
WebGL2RenderingContext | WebGL2 rendering context used to compile shaders. | |
options |
SolidColorMaterialOptions |
<optional> |
Material options. |
- Source:
Classes
Members
color
Returns the internal color buffer.
Note: returned Float32Array is mutable.
- Source:
Methods
apply(matrix4)
Applies per-object uniforms.
Parameters:
| Name | Type | Description |
|---|---|---|
matrix4 |
Float32Array | Transformation matrix passed as u_matrix. |
- Source:
setColor(color)
Sets the RGB color.
Parameters:
| Name | Type | Description |
|---|---|---|
color |
Float32Array | Array.<number> | [r, g, b] in 0..1 range. |
- Source: