The Material node class. More...
#include "murl_graph_material.h"
Additional Inherited Members | |
Public Types inherited from Murl::IFactoryObject< INode > | |
using | ClassInfoArray = Array< const ClassInfo * > |
Definition of an array of ClassInfo objects. | |
Public Member Functions inherited from Murl::IFactoryObject< INode > | |
~IFactoryObject () override | |
The destructor. | |
virtual const ClassInfo * | GetObjectClassInfo () const=0 |
Get the object instance's class info, if present. More... | |
virtual void | ResetObjectProperties ()=0 |
Reset the object instance's properties to their default values. | |
Static Public Member Functions inherited from Murl::IFactoryObject< INode > | |
static const PropertyInfo * | GetPropertyInfo () |
Get the class' property info struct. More... | |
static const AttributeInfo * | GetAttributeInfo () |
Get the class' attribute info struct. More... | |
static void | ResetProperties (IFactoryObject< INode > *object) |
Reset an object instance's properties to their default values. More... | |
Detailed Description
The Material node class.
XML Elements
- XML Graph Node Attributes:
-
programId="" [String]
The ID of the program to use for rendering. See Murl::Graph::IMaterial::GetProgramNodeTarget().
visibleFaces="FRONT_ONLY" [IEnums::PolygonFaces]
Selects which primitives are visible during rendering (front-facing, back-facing or both). See Murl::Graph::IMaterial::SetVisibleFaces().
colorBufferMode="WRITE_ONLY" [IEnums::ColorBufferMode]
The access mode for the color buffer. See Murl::Graph::IMaterial::SetColorBufferMode().
colorBufferMask="ALL" [IEnums::ColorBufferMask]
The bit mask to select which color buffer components to write. See Murl::Graph::IMaterial::SetColorBufferMask().
depthBufferMode="READ_AND_WRITE" [IEnums::DepthBufferMode]
The access mode for the depth buffer. See Murl::Graph::IMaterial::SetDepthBufferMode().
depthBufferMask="ALL" [IEnums::DepthBufferMask]
The bit mask to select which depth buffer components to write. See Murl::Graph::IMaterial::SetDepthBufferMask().
depthTestFunction="LESS_OR_EQUAL" [IEnums::DepthTestFunction]
The depth value comparison function. See Murl::Graph::IMaterial::SetDepthTestFunction().
stencilBufferMode="NONE" [IEnums::StencilBufferMode]
The access mode for the stencil buffer. See Murl::Graph::IMaterial::SetStencilBufferMode().
stencilBufferMask="ALL" [IEnums::StencilBufferMask]
The bit mask to select which stencil buffer bits to write. See Murl::Graph::IMaterial::SetStencilBufferMask().
frontStencilTestFunction="ALWAYS" [IEnums::StencilTestFunction]
The stencil value comparison function used for front-facing primitives. See Murl::Graph::IMaterial::SetStencilTestFunction().
backStencilTestFunction="ALWAYS" [IEnums::StencilTestFunction]
The stencil value comparison function used for back-facing primitives. See Murl::Graph::IMaterial::SetStencilTestFunction().
frontStencilTestReferenceValue="0" [UInt32]
The reference value used for stencil tests on front-facing primitives. See Murl::Graph::IMaterial::SetStencilTestReferenceValue().
backStencilTestReferenceValue="0" [UInt32]
The reference value used for stencil tests on back-facing primitives. See Murl::Graph::IMaterial::SetStencilTestReferenceValue().
frontStencilTestMask="0xffffffff" [UInt32]
The mask value used for stencil tests on front-facing primitives. See Murl::Graph::IMaterial::SetStencilTestMask().
backStencilTestMask="0xffffffff" [UInt32]
The mask value used for stencil tests on back-facing primitives. See Murl::Graph::IMaterial::SetStencilTestMask().
frontStencilBufferActionForFailedStencilTest="KEEP" [IEnums::StencilBufferAction]
The action to perform for front-facing primitives, when the stencil test fails. See Murl::Graph::IMaterial::SetStencilBufferActionForFailedStencilTest().
backStencilBufferActionForFailedStencilTest="KEEP" [IEnums::StencilBufferAction]
The action to perform for back-facing primitives, when the stencil test fails. See Murl::Graph::IMaterial::SetStencilBufferActionForFailedStencilTest().
frontStencilBufferActionForFailedDepthTest="KEEP" [IEnums::StencilBufferAction]
The action to perform for front-facing primitives when the stencil test passes, but the depth test fails. See Murl::Graph::IMaterial::SetStencilBufferActionForFailedDepthTest().
backStencilBufferActionForFailedDepthTest="KEEP" [IEnums::StencilBufferAction]
The action to perform for back-facing primitives when the stencil test passes, but the depth test fails. See Murl::Graph::IMaterial::SetStencilBufferActionForFailedDepthTest().
frontStencilBufferActionForPassedDepthTest="KEEP" [IEnums::StencilBufferAction]
The action to perform for front-facing primitives when both the stencil test and the depth tests pass. See Murl::Graph::IMaterial::SetStencilBufferActionForPassedDepthTest().
backStencilBufferActionForPassedDepthTest="KEEP" [IEnums::StencilBufferAction]
The action to perform for back-facing primitives when both the stencil test and the depth tests pass. See Murl::Graph::IMaterial::SetStencilBufferActionForPassedDepthTest().
blendMode="NONE" [IEnums::BlendMode]
The fragment blend mode. See Murl::Graph::IMaterial::SetBlendMode().
srcColorBlendFunction="SRC_ALPHA" [IEnums::BlendFunction]
The blend function to apply on source color values. See Murl::Graph::IMaterial::SetBlendFunction().
srcAlphaBlendFunction="SRC_ALPHA" [IEnums::BlendFunction]
The blend function to apply on the source alpha value. See Murl::Graph::IMaterial::SetBlendFunction().
dstColorBlendFunction="ONE_MINUS_SRC_ALPHA" [IEnums::BlendFunction]
The blend function to apply on destination color values. See Murl::Graph::IMaterial::SetBlendFunction().
dstAlphaBlendFunction="ONE_MINUS_SRC_ALPHA" [IEnums::BlendFunction]
The blend function to apply on the destination alpha value. See Murl::Graph::IMaterial::SetBlendFunction().
colorBlendEquation="ADD" [IEnums::BlendEquation]
The blend equation used to combine the source and destination color values. See Murl::Graph::IMaterial::SetBlendEquation().
alphaBlendEquation="ADD" [IEnums::BlendEquation]
The blend equation used to combine the source and destination alpha values. See Murl::Graph::IMaterial::SetBlendEquation().
objectSortMode="" [IEnums::ObjectSortMode]
The object sort mode when rendering drawables using this material. See Murl::Graph::IMaterial::SetObjectSortMode().
sortOrder="0" [SInt32]
The material sort order. See Murl::Graph::IMaterial::SetSortOrder().
variableDepthOffset="0.0" [Real]
The variable depth value offset. See Murl::Graph::IMaterial::SetVariableDepthOffset().
constantDepthOffset="0.0" [Real]
The constant depth value offset. See Murl::Graph::IMaterial::SetConstantDepthOffset().
clearColorBuffer="false" [Bool]
If true, the color buffer is cleared before rendering a drawable using this material. See Murl::Graph::IMaterial::SetColorBufferClearingEnabled().
clearDepthBuffer="false" [Bool]
If true, the depth buffer is cleared before rendering a drawable using this material. See Murl::Graph::IMaterial::SetDepthBufferClearingEnabled().
clearStencilBuffer="false" [Bool]
If true, the stencil buffer is cleared before rendering a drawable using this material. See Murl::Graph::IMaterial::SetStencilBufferClearingEnabled().
colorClearValue="0" [Color]
The clear value used when color buffer clearing is enabled. See Murl::Graph::IMaterial::SetColorBufferClearValue().
depthClearValue="1.0" [Real]
The clear value used when depth buffer clearing is enabled. See Murl::Graph::IMaterial::SetDepthBufferClearValue().
stencilClearValue="0" [SInt32]
The clear value used when stencil buffer clearing is enabled. See Murl::Graph::IMaterial::SetStencilBufferClearValue().
minNumberOfLightStages="1" [SInt32]
The minimum number of light stages to consider during rendering. See Murl::Graph::IMaterial::SetMinNumberOfLightStages().
maxNumberOfLightStages="1" [SInt32]
The maximum number of light stages to consider during rendering. See Murl::Graph::IMaterial::SetMaxNumberOfLightStages().
lightStageUnit="-1" [SInt32]
The light stage unit used for multi-pass rendering. See Murl::Graph::IMaterial::SetLightStageUnit().
lightMaskEnabled="false" [Bool]
Enable/disable light masking. See Murl::Graph::IMaterial::SetLightMaskEnabled().
cameraSlot="0" [SInt32]
The slot index of the camera to render to. See Murl::Graph::IMaterial::SetCameraSlot().
layerOffset="0" [SInt32]
The offset of the layer to render to. See Murl::Graph::IMaterial::SetLayerOffset().
parametersStage="0" [SInt32]
The parameters stage to use. See Murl::Graph::IMaterial::SetParametersStage().
textureStage.N="0" [SInt32]
The texture stage for texture unit N to use. See Murl::Graph::IMaterial::SetTextureStage().
textureStages="{0}" [SInt32Array]
A comma-separated list of texture stages to use. See Murl::Graph::IMaterial::SetTextureStage().
slot="0" [SInt32]
The slot index to which the material gets temporarily assigned during traversal of its children, in the range from 0 to Murl::IEnums::NUM_MATERIAL_SLOTS-1. See Murl::Graph::IStateSlot::SetSlot().
The documentation for this class was generated from the following file:
- murl_graph_material.h