#import <ARColourMaterial.h>
The ARColourMaterial is a material that renders a solid colour. Alpha transparency is supported.
| + (instancetype) colourMaterialWithRed: |
|
(float) |
red |
| green: |
|
(float) |
green |
| blue: |
|
(float) |
blue |
|
|
| |
Class method that initialises an instance of ARColourMaterial with the given red, green and blue component values. Each component is in the range 0..1.
Example of use:
- Parameters
-
| red | component value 0..1. |
| green | component value 0..1. |
| blue | component value 0..1. |
| - (instancetype) initWithRed: |
|
(float) |
red |
| green: |
|
(float) |
green |
| blue: |
|
(float) |
blue |
|
|
| |
Initialise with red, green and blue components. Each component is in the range 0..1.
Example of use:
- Parameters
-
| red | component value 0..1. |
| green | component value 0..1. |
| blue | component value 0..1. |
| - (instancetype) initWithRed: |
|
(float) |
red |
| green: |
|
(float) |
green |
| blue: |
|
(float) |
blue |
| alpha: |
|
(float) |
alpha |
|
|
| |
Initialise with red, green, blue and alpha components. Each component is in the range 0..1.
Example of use:
- Parameters
-
| red | component value 0..1. |
| green | component value 0..1. |
| blue | component value 0..1. |
| alpha | component value 0..1. |
The alpha component of the colour, in the range 0..1.
The blue component of the colour, in the range 0..1.
Sets whether material draws in the depth buffer only. Default value is false this draws the material to the colour buffer and depth buffer. Used in occlusion material when true, as it wont draw to the colour buffer.
The green component of the colour, in the range 0..1.
The red component of the colour, in the range 0..1.
The documentation for this class was generated from the following file: