Inherits ARMaterial.
The ARColourMaterial is a material that renders a single colour. Alpha transparency is supported.
◆ ARColourMaterial() [1/2]
ARColourMaterial.ARColourMaterial |
( |
| ) |
|
◆ ARColourMaterial() [2/2]
ARColourMaterial.ARColourMaterial |
( |
Vector3f |
colour | ) |
|
Initialise an ARColourMaterial with with red, green and blue components stored in a vector. Each component is in the range 0..1.
- Parameters
-
colour | A Vector3f containing 3 values in the range 0..1. |
◆ prepareRendererWithNode()
boolean ARColourMaterial.prepareRendererWithNode |
( |
ARNode |
node | ) |
|
Prepares renderer to draw ARColourMaterial. Binds the ARColourTextureShader and sets the colour to draw.
- Parameters
-
node | Node material is attached to. |
- Returns
- true
Reimplemented from ARMaterial.
◆ setColour()
void ARColourMaterial.setColour |
( |
Vector3f |
colour | ) |
|
Set the colour of the ARColourMaterial with red, green and blue components stored in a vector. Each component is in the range 0..1.
- Parameters
-
colour | A Vector3f containing 3 values in the range 0..1. |
The documentation for this class was generated from the following file: