KudanAR - iOS
ARMaterial Class Reference

#import <ARMaterial.h>

+ Inheritance diagram for ARMaterial:
+ Collaboration diagram for ARMaterial:

Instance Methods

(void) - postRender
 

Properties

NSString * name
 
BOOL isTranslucent
 
ARBlendMode blendMode
 
BOOL depthTest
 
BOOL depthWrite
 
BOOL colourWrite
 
ARFaceCullMode cullMode
 

Detailed Description

A material represents how an object is shaded. This serves as a base class and shouldn't be created directly.

Method Documentation

- (void) postRender

Method called after this material has been used to render an object. This can be useful for playable textures if you wish to check their updated state.

Property Documentation

- (ARBlendMode) blendMode
readwritenonatomicassign

The blend mode to use with this material. If transparency is enabled, the ARBlendMode will control how the renderer blends the object it is drawing with the framebuffer, based on its alpha value.

- (BOOL) colourWrite
readwritenonatomicassign

Whether to write to the colour buffer. If NO, only depth information will be written. Default is YES.

- (ARFaceCullMode) cullMode
readwritenonatomicassign

The face culling mode. Default is ARFaceCullModeBack.

- (BOOL) depthTest
readwritenonatomicassign

Whether pixels rendered with this material should be depth tested against existing pixels in the framebuffer. Default is YES.

- (BOOL) depthWrite
readwritenonatomicassign

Whether pixels rendered with this material should generate depth information in the framebuffer. Default is YES.

- (BOOL) isTranslucent
readwritenonatomicassign

Whether this material involves transparency. Default is NO.

- (NSString*) name
readwritenonatomicassign

The material's name, this is automatically set during the model importer process.


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