#import <ARMaterial.h>
Inherits NSObject.
Inherited by ARAlphaVideoMaterial, ARCameraBackgroundMaterial, ARColourMaterial, ARLightMaterial, ARPointMaterial, ARTextureMaterial, ARVideoTextureMaterial, and ARYUVMaterial.
|
(void) | - postRender |
|
(BOOL) | - prepareRendererWithNode: [implementation] |
|
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.
◆ 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.
◆ 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
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
Whether pixels rendered with this material should be depth tested against existing pixels in the framebuffer. Default is YES.
◆ depthWrite
Whether pixels rendered with this material should generate depth information in the framebuffer. Default is YES.
◆ isTranslucent
Whether this material has any alpha transparency. Default is NO.
◆ name
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:
- ARMaterial.h
- ARMaterial.m