KudanAR - iOS  1.6.0
ARVideoTextureMaterial Class Reference

#import <ARVideoTextureMaterial.h>

Inherits ARMaterial.

Instance Methods

(instancetype) - initWithTexture:
 
- Instance Methods inherited from ARMaterial
(void) - postRender
 
(BOOL) - prepareRendererWithNode: [implementation]
 

Class Methods

(instancetype) + materialwithTexture:
 

Properties

ARVideoTexturetexture
 
float alpha
 
float fadeInTime
 
- Properties inherited from ARMaterial
NSString * name
 
BOOL isTranslucent
 
ARBlendMode blendMode
 
BOOL depthTest
 
BOOL depthWrite
 
BOOL colourWrite
 
ARFaceCullMode cullMode
 
ARShaderProgramshaderProgram [implementation]
 

Detailed Description

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.

Method Documentation

◆ initWithTexture:

- (instancetype) initWithTexture: (ARVideoTexture *)  texture

Initialise ARVideoTextureMaterial with video texture.

Parameters
textureThe video texture to be rendered.

◆ materialwithTexture:

+ (instancetype) materialwithTexture: (ARVideoTexture *)  texture

Initialise ARVideoTextureMaterial with video texture class method.

Parameters
textureThe video texture to be rendered.

Property Documentation

◆ alpha

- (float) alpha
readwritenonatomicassign

The transparency of the video. 0..1 with 0 being fully transparent and 1 being fully opaque.

◆ fadeInTime

- (float) fadeInTime
readwritenonatomicassign

The time in seconds in which to fade the video in. This takes control of the alpha property. Default is 0 seconds.

◆ texture

- (ARVideoTexture*) texture
readwritenonatomicassign

The video texture to be rendered.


The documentation for this class was generated from the following files: