![]() |
KudanAR - Android
1.6.0
|
Inherits ARMaterial.
Public Member Functions | |
ARVideoTextureMaterial () | |
ARVideoTextureMaterial (ARTextureOES texture) | |
boolean | prepareRendererWithNode (ARNode node) |
void | setUVTransform (float[]uvTransform) |
![]() | |
boolean | getTransparent () |
void | setTransparent (boolean transparent) |
boolean | getDepthOnly () |
void | setDepthOnly (boolean depthOnly) |
void | setDepthWrite (boolean depthWrite) |
boolean | getDepthWrite () |
void | setDepthTest (boolean depthTest) |
boolean | getDepthTest () |
void | setName (String name) |
String | getName () |
An ARVideoTextureMaterial is a material designed specifically for use with an ARVideoTexture. It provides extra properties unique to ARVideoTextures, including alpha transparency and fade time.
ARVideoTextureMaterial.ARVideoTextureMaterial | ( | ) |
Initialises an empty ARVideoTextureMaterial to be assigned values later.
ARVideoTextureMaterial.ARVideoTextureMaterial | ( | ARTextureOES | texture | ) |
Initialises an ARVideoTextureMaterial with a texture.
Example of use:
ARVideoTextureMaterial videoTextureMaterial = new ARVideoTextureMaterial(texture);
texture | The texture to initialise the video texture material with. |
boolean ARVideoTextureMaterial.prepareRendererWithNode | ( | ARNode | node | ) |
Prepares renderer to render ARVideoTextureMaterial. Binds the ARVideoTextureShader for rendering and sets its UV transform and texture parameters.
node | ARMeshNode to be rendered. |
Reimplemented from ARMaterial.
void ARVideoTextureMaterial.setUVTransform | ( | float[] | uvTransform | ) |
Sets the ARVideoTextureMaterial UV transformation.
uvTransform |