1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 2<html xml:lang="en-US" lang="en-US" xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 5 <meta http-equiv="Content-Style-Type" content="text/css" /> 6 <title>MaterialCtr</title> 7 <link rel="stylesheet" href="../css/mainpage.css" type="text/css" /> 8 </head> 9 <body> 10 <h1><MaterialCtr></h1> 11 <h2>Description</h2> 12 <p> 13This tag is for materials. Children of this tag include various colors, culling, texture members, fragment shaders, and fragment operations. 14 </p> 15 <h2>Attributes</h2> 16 <table class="arguments"> 17<thead><tr><td>Type</td><td>Attributes</td><td>Description</td></tr></thead><tr><td /><th>FogIndex</th><td> 18 Fog index. 19 </td></tr><tr><td /><th>IsCompressible</th><td> 20 Flag indicating whether material can be compressed. 21 </td></tr><tr><td /><th>IsFogEnabled</th><td> 22 Flag for enabling fog. 23 </td></tr><tr><td /><th>IsFragmentLightEnabled</th><td> 24 Flag for enabling fragment lighting. 25 </td></tr><tr><td /><th>IsHemiSphereLightEnabled</th><td> 26 Flag for enabling hemispherical lighting. 27 </td></tr><tr><td /><th>IsHemiSphereOcclusionEnabled</th><td> 28 Flag for enabling occlusion with hemispherical lighting. 29 </td></tr><tr><td /><th>IsVertexLightEnabled</th><td> 30 Flag for enabling vertex lighting. 31 </td></tr><tr><td /><th>LightSetIndex</th><td> 32 The index of a light set. 33 </td></tr><tr><td /><th>Name</th><td> 34 Name. 35 </td></tr><tr><td>ShaderBinaryKindCtr</td><th>ShaderBinaryKind</th><td> 36 The type of shader binary. 37 </td></tr><tr><td /><th>ShaderProgramDescriptionIndex</th><td> 38 The index when referencing shader program settings. 39 </td></tr><tr><td>TextureCoordinateConfigCtr</td><th><CODE>TextureCoordinateConfig</CODE></th><td> 40 The unit assignment setting for texture coordinates. 41 </td></tr><tr><td>TranslucencyKindCtr</td><th>TranslucencyKind</th><td> 42 Type of translucency. 43 </td></tr></table> 44 <h2>ShaderBinaryKindCtr Enumerated Type</h2> 45 <table class="arguments"> 46<thead><tr><td>Value</td><td>Description</td></tr></thead><tr><th>Default</th><td> 47 Standard shader. 48 </td></tr><tr><th>Particle</th><td> 49 Particle shader. 50 </td></tr></table> 51 <h2>TextureCoordinateConfigCtr Enumerated Types</h2> 52 <table class="arguments"> 53<thead><tr><td>Value</td><td>Description</td></tr></thead><tr><th>Config0120</th><td>Assigns coordinate numbers 0, 1, 2, 0 to units.</td></tr><tr><th>Config0110</th><td>Assigns coordinate numbers 0, 1, 1, 0 to units.</td></tr><tr><th>Config0111</th><td>Assigns coordinate numbers 0, 1, 1, 1 to units.</td></tr><tr><th>Config0112</th><td>Assigns coordinate numbers 0, 1, 1, 2 to units.</td></tr><tr><th>Config0121</th><td>Assigns coordinate numbers 0, 1, 2, 1 to units.</td></tr><tr><th>Config0122</th><td>Assigns coordinate numbers 0, 1, 2, 2 to units.</td></tr></table> 54 <h2>TranslucencyKindCtr Enumerated Type</h2> 55 <table class="arguments"> 56<thead><tr><td>Value</td><td>Description</td></tr></thead> 57 58<tr><th>Layer0</th><td>Identifier for the 0th layer.</td></tr> 59<tr><th>Layer1</th><td>Identifier for the 1st layer.</td></tr> 60<tr><th>Layer2</th><td>Identifier for the 2nd layer.</td></tr> 61<tr><th>Layer3</th><td>Identifier for the 3rd layer.</td></tr> 62 63<tr><th>Opaque</th><td> Identifier for opaque materials. The name of Layer0.</td></tr> 64<tr><th>Translucent</th><td>Identifier for semi-transparent materials. The name of Layer1.</td></tr> 65<tr><th>Subtractive</th><td>Identifier for materials that undergo subtractive combination. The name of Layer2.</td></tr> 66<tr><th>Additive</th><td> Identifier for materials that undergo additive combination. The name of Layer3.</td></tr></table> 67 68<h2>Example Output</h2> 69 70<table> 71<tr> 72<td><pre> 73<Materials><br> 74 <strong><MaterialCtr Name="lambert2" IsCompressible="true" IsFragmentLightEnabled="true" IsVertexLightEnabled="false" IsHemiSphereLightEnabled="false" IsHemiSphereOcclusionEnabled="false" IsFogEnabled="false" TextureCoordinateConfig="Config0120" TranslucencyKind="Opaque" ShaderProgramDescriptionIndex="-1" ShaderBinaryKind="Default"></strong><br> 75 <ShaderReference /><br> 76 <MaterialColor VertexColorScale="1"><br> 77 <Emission R="0" G="0" B="0" A="0" /><br> 78 <Ambient R="1" G="1" B="1" A="0" /><br> 79 <Diffuse R="1" G="1" B="1" A="1" /><br> 80 <Specular0 R="1" G="1" B="1" A="0" /><br> 81 <Specular1 R="0" G="0" B="0" A="0" /><br> 82 <Constant0 R="0" G="0" B="0" A="1" /><br> 83 <Constant1 R="0" G="0" B="0" A="1" /><br> 84 <Constant2 R="0" G="0" B="0" A="1" /><br> 85 <Constant3 R="0" G="0" B="0" A="1" /><br> 86 <Constant1 R="0" G="0" B="0" A="1" /><br> 87 <Constant5 R="0" G="0" B="0" A="1" /><br> 88 </MaterialColor><br> 89 <Rasterization CullingMode="BackFace" IsPolygonOffsetEnabled="false" PolygonOffsetFactor="0" PolygonOffsetUnit="0" /><br> 90 <TextureCoordinators><br> 91 <TextureCoordinatorCtr SourceCoordinate="0" MappingMethod="UvCoordinateMap" ReferenceCamera="0" MatrixMode="DccMaya" ScaleS="1" ScaleT="1" Rotate="0" TranslateS="0" TranslateT="0" /><br> 92 </TextureCoordinators><br> 93 <TextureMappers><br> 94 <PixelBasedTextureMapperCtr><br> 95 <TextureReference>Textures["Number.1"]@file:Textures/Number.1.ctex</TextureReference><br> 96 <StandardTextureSamplerCtr MinFilter="Linear" MagFilter="Linear" WrapS="Repeat" WrapT="Repeat" MinLod="0" LodBias="0"><br> 97 <BorderColor R="0" G="0" B="0" A="1" /><br> 98 </StandardTextureSamplerCtr><br> 99 </PixelBasedTextureMapperCtr><br> 100 </TextureMappers><br> 101 <FragmentShader LayerConfig="ConfigurationType0"><br> 102 <BufferColor R="0" G="0" B="0" A="1" /><br> 103 <FragmentBump BumpTextureIndex="Texture0" BumpMode="NotUsed" IsBumpRenormalize="false" /><br> 104 <FragmentLighting FresnelConfig="No" IsClampHighLight="false" IsDistribution0Enabled="false" IsDistribution1Enabled="false" IsGeometricFactor0Enabled="false" IsGeometricFactor1Enabled="false" IsReflectionEnabled="false" /><br> 105 <FragmentLightingTable><br> 106 <ReflectanceRSampler IsAbs="true" Input="CosNormalHalf" Scale="One"><br> 107 <NullLookupTableCtr /><br> 108 </ReflectanceRSampler><br> 109 <ReflectanceGSampler IsAbs="true" Input="CosNormalHalf" Scale="One"><br> 110 <NullLookupTableCtr /><br> 111 </ReflectanceGSampler><br> 112 <ReflectanceBSampler IsAbs="true" Input="CosNormalHalf" Scale="One"><br> 113 <NullLookupTableCtr /><br> 114 </ReflectanceBSampler><br> 115 <Distribution0Sampler IsAbs="true" Input="CosNormalHalf" Scale="One"><br> 116 <NullLookupTableCtr /><br> 117 </Distribution0Sampler><br> 118 <Distribution1Sampler IsAbs="true" Input="CosNormalHalf" Scale="One"><br> 119 <NullLookupTableCtr /><br> 120 </Distribution1Sampler><br> 121 <FresnelSampler IsAbs="true" Input="CosNormalHalf" Scale="One"><br> 122 <NullLookupTableCtr /><br> 123 </FresnelSampler><br> 124 </FragmentLightingTable><br> 125 <TextureCombiners><br> 126 <TextureCombinerCtr CombineRgb="Modulate" CombineAlpha="Modulate" ScaleRgb="One" ScaleAlpha="One" Constant="Constant0" BufferInputRgb="PreviousBuffer" BufferInputAlpha="PreviousBuffer"><br> 127 <SourceRgb Source0="FragmentPrimaryColor" Source1="Texture0" Source2="Constant" /><br> 128 <OperandRgb Operand0="Color" Operand1="Color" Operand2="Color" /><br> 129 <SourceAlpha Source0="PrimaryColor" Source1="Texture0" Source2="Constant" /><br> 130 <OperandAlpha Operand0="Alpha" Operand1="Alpha" Operand2="Alpha" /><br> 131 </TextureCombinerCtr><br> 132 </TextureCombiners><br> 133 <AlphaTest IsTestEnabled="false" TestFunction="Always" TestReference="0" /><br> 134 </FragmentShader><br> 135 <FragmentOperation><br> 136 <DepthOperation IsTestEnabled="true" TestFunction="Less" IsMaskEnabled="true" /><br> 137 <BlendOperation Mode="NotUsed" LogicOperation="Copy"><br> 138 <RgbParameter BlendFunctionSource="SourceAlpha" BlendFunctionDestination="OneMinusSourceAlpha" BlendEquation="FuncAdd" /><br> 139 <AlphaParameter BlendFunctionSource="One" BlendFunctionDestination="Zero" BlendEquation="FuncAdd" /><br> 140 <BlendColor R="0" G="0" B="0" A="1" /><br> 141 </BlendOperation><br> 142 </FragmentOperation><br> 143 <strong></MaterialCtr></strong><br> 144</Materials><br> 145</pre></td> 146</tr></table> 147 <hr><p>CONFIDENTIAL</p></body> 148</html>