KudanAR - iOS  1.6.0
ARMaterial Class Reference

#import <ARMaterial.h>

Inherits NSObject.

Inherited by ARAlphaVideoMaterial, ARCameraBackgroundMaterial, ARColourMaterial, ARLightMaterial, ARPointMaterial, ARTextureMaterial, ARVideoTextureMaterial, and ARYUVMaterial.

Instance Methods

(void) - postRender
 
(BOOL) - prepareRendererWithNode: [implementation]
 

Properties

NSString * name
 
BOOL isTranslucent
 
ARBlendMode blendMode
 
BOOL depthTest
 
BOOL depthWrite
 
BOOL colourWrite
 
ARFaceCullMode cullMode
 
ARShaderProgramshaderProgram [implementation]
 

Detailed Description

An ARMaterial represents a basic material system. It enhances the realism of meshes by applying extra properties to it. It can be attached to an ARMeshNode to provide the parameters and contexual information to a shader, which allows it to correctly render a mesh node.

This serves as a base class and shouldn't be created directly.

Method Documentation

◆ postRender

- (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

◆ blendMode

- (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.

◆ colourWrite

- (BOOL) colourWrite
readwritenonatomicassign

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

◆ cullMode

- (ARFaceCullMode) cullMode
readwritenonatomicassign

The type of face culling this material uses. This determines which faces are considered non-visible and are subsequently not drawn by the renderer. Default is ARFaceCullModeBack.

◆ depthTest

- (BOOL) depthTest
readwritenonatomicassign

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

◆ depthWrite

- (BOOL) depthWrite
readwritenonatomicassign

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

◆ isTranslucent

- (BOOL) isTranslucent
readwritenonatomicassign

Whether this material has any alpha transparency. Default is NO.

◆ name

- (NSString*) name
readwritenonatomicassign

The name of this material. This is automatically set during the model import process.


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