Inherited by ARAlphaVideoTextureMaterial, ARCameraBackgroundMaterial, ARCameraTextureMaterial, ARColourMaterial, ARLightMaterial, ARPointMaterial, ARTextureMaterial, and ARVideoTextureMaterial.
A material represents how an object is shaded. This serves as a base class and shouldn't be used directly.
◆ getDepthOnly()
boolean ARMaterial.getDepthOnly |
( |
| ) |
|
Whether the renderer draws the material to the depth buffer only.
- Returns
- boolean
◆ getDepthTest()
boolean ARMaterial.getDepthTest |
( |
| ) |
|
Returns whether pixels rendered with this material should be depth tested against existing pixels in the framebuffer. Default is true.
- Returns
- Whether pixels rendered with this material should be depth tested.
◆ getDepthWrite()
boolean ARMaterial.getDepthWrite |
( |
| ) |
|
Whether the renderer draws the material to the depth buffer only.
- Returns
- boolean
◆ getName()
String ARMaterial.getName |
( |
| ) |
|
◆ getTransparent()
boolean ARMaterial.getTransparent |
( |
| ) |
|
Returns whether or not this material uses alpha transparency. Default is false.
- Returns
- Whether this material uses transparency.
◆ prepareRendererWithNode()
boolean ARMaterial.prepareRendererWithNode |
( |
ARNode |
node | ) |
|
◆ setDepthOnly()
void ARMaterial.setDepthOnly |
( |
boolean |
depthOnly | ) |
|
Sets whether the renderer draws the material to the depth buffer only.
- Parameters
-
◆ setDepthTest()
void ARMaterial.setDepthTest |
( |
boolean |
depthTest | ) |
|
Sets whether pixels rendered with this material should be depth tested against existing pixels in the framebuffer. Default: YES.
- Parameters
-
◆ setDepthWrite()
void ARMaterial.setDepthWrite |
( |
boolean |
depthWrite | ) |
|
Sets whether the renderer writes the material to the depth buffer only.
- Parameters
-
◆ setName()
void ARMaterial.setName |
( |
String |
name | ) |
|
Sets the name of the ARMaterial.
Example of use: material.setName("example");
- Parameters
-
name | The name to assign to the material. |
◆ setTransparent()
void ARMaterial.setTransparent |
( |
boolean |
transparent | ) |
|
Sets whether the material is transparent.
- Parameters
-
The documentation for this class was generated from the following file: