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>TextureCombinerCtr</title> 7 <link rel="stylesheet" href="../css/mainpage.css" type="text/css" /> 8 </head> 9 <body> 10 <h1><TextureCombinerCtr></h1> 11 <h2>Description</h2> 12 <p> 13 This tag represents a texture combiner. 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>TextureCombineBufferInput</td><th>BufferInputAlpha</th><td> 18 The alpha buffer input. This can be set for texture combiners 1, 2, 3 and 4 only. 19 </td></tr><tr><td>TextureCombineBufferInput</td><th>BufferInputRgb</th><td> 20 The color buffer input. This can be set for texture combiners 1, 2, 3 and 4 only. 21 </td></tr><tr><td>TextureCombineMode</td><th>CombineAlpha</th><td> 22 The number of alpha combiners. 23 </td></tr><tr><td>TextureCombineMode</td><th>CombineRgb</th><td> 24 The number of color combiners. 25 </td></tr><tr><td>ConstantColorCtr</td><th><CODE>Constant</CODE></th><td> 26 The constant color index. 27 </td></tr><tr><td>TextureCombineScale</td><th>ScaleAlpha</th><td> 28 The scale for the output alpha. 29 </td></tr><tr><td>TextureCombineScale</td><th>ScaleRgb</th><td> 30 The scale for the output color. 31 </td></tr></table> 32 <h2>TextureCombineBufferInput Enumeratred Type</h2> 33 <table class="arguments"> 34<thead><tr><td>Value</td><td>Description</td></tr></thead><tr><th>Previous</th><td> 35 Inputs the previous texture combiner blender output to the buffer. 36 </td></tr><tr><th>PreviousBuffer</th><td> 37 Inputs the previous buffer as-is to the buffer. 38 </td></tr></table> 39 <h2>TextureCombineMode Enumerated Type</h2> 40 <table class="arguments"> 41<thead><tr><td>Value</td><td>Description</td></tr></thead><tr><th>Replace</th><td> 42 Only Operation 0 is used. Result = Arg0 43 </td></tr><tr><th>Modulate</th><td> 44 Multiplies Operation 0 and Operation 1. Result = Arg0 + Arg1 45 </td></tr><tr><th>Add</th><td> 46 Adds operation 0 and Operation 1. Result = Arg0 + Arg1 47 </td></tr><tr><th>AddSigned</th><td> 48 Subtracts 0.5 from the sum of Operation 0 and Operation 1. Result = Arg0 + Arg1 - 0.5 49 </td></tr><tr><th>Interpolate</th><td> 50 Interploates Operation 0 and Operation 1 using Operation 2. Result = Arg0 * Arg2 + Arg1 * (1 - Arg2) 51 </td></tr><tr><th>Subtract</th><td> 52 Subtracts Operation 0 and Operation 1. Result = Arg0 - Arg1 53 </td></tr><tr><th>DotProduct3Rgb</th><td> 54 Replaces each RGB with the dot product of Operation 0 and Operation 1. ResultRGB = 4 * ((Arg0r - 0.5) * (Arg1r - 0.5) + (Arg0g - 0.5) * (Arg1g - 0.5) + (Arg0b - 0.5) * (Arg1b - 0.5)) 55 </td></tr><tr><th>DotProduct3Rgba</th><td> 56 Replaces each RGBA with the dot product of Operation 0 and Operation 1. ResultRGBA = 4 * ((Arg0r - 0.5) * (Arg1r - 0.5) + (Arg0g - 0.5) * (Arg1g - 0.5) + (Arg0b - 0.5) * (Arg1b - 0.5)) 57 </td></tr><tr><th>AddMult</th><td> 58 Multiplies the sum of Operation 0 and Operation 1 by Operation 2. Result = (Arg0 + Arg1) * Arg2 59 </td></tr><tr><th>MultAdd</th><td> 60 Adds the product of Operation 0 and Operation 1 to Operation 2. Result = (Arg0 * Arg1) + Arg2 61 </td></tr></table> 62 <h2>ConstantColorCtr Enumerated Type</h2> 63 <table class="arguments"> 64<thead><tr><td>Value</td><td>Description</td></tr></thead><tr><th>Constant0</th><td> 65 Contant color. 66 </td></tr><tr><th>Constant1</th><td> 67 Constant color 2. 68 </td></tr><tr><th>Constant2</th><td> 69 Constant color 3. 70 </td></tr><tr><th>Constant3</th><td> 71 Constant color 4. 72 </td></tr><tr><th>Constant4</th><td> 73 Constant color 5. 74 </td></tr><tr><th>Constant5</th><td> 75 Constant color 6. 76 </td></tr><tr><th>Emission</th><td> 77 Emission color. 78 </td></tr><tr><th>Ambient</th><td> 79 Ambient color. 80 </td></tr><tr><th>Diffuse</th><td> 81 Diffuse color. 82 </td></tr><tr><th>Specular0</th><td> 83 Specular color. 84 </td></tr><tr><th>Specular1</th><td> 85 Specular color 2. 86 </td></tr></table> 87 <h2>TextureCombineScale Enumerated Type</h2> 88 <table class="arguments"> 89<thead><tr><td>Value</td><td>Description</td></tr></thead><tr><th>One</th><td> 90 Equal scale mode. 91 </td></tr><tr><th>Two</th><td> 92 Double scale mode. 93 </td></tr><tr><th>Four</th><td> 94 Quadruple scale mode. 95 </td></tr></table> 96 97<h2>Example Output</h2> 98 99<table> 100<tr> 101<td><pre> 102<Materials><br> 103 <MaterialCtr Name="lambert2" IsCompressible="true" IsFragmentLightEnabled="true" IsVertexLightEnabled="false" IsHemiSphereLightEnabled="false" IsHemiSphereOcclusionEnabled="false" IsFogEnabled="false" TextureCoordinateConfig="Config0120" TranslucencyKind="Opaque" ShaderProgramDescriptionIndex="-1" ShaderBinaryKind="Default"><br> 104 <ShaderReference /><br> 105 <MaterialColor VertexColorScale="1"><br> 106 <Emission R="0" G="0" B="0" A="0" /><br> 107 <Ambient R="1" G="1" B="1" A="0" /><br> 108 <Diffuse R="1" G="1" B="1" A="1" /><br> 109 <Specular0 R="1" G="1" B="1" A="0" /><br> 110 <Specular1 R="0" G="0" B="0" A="0" /><br> 111 <Constant0 R="0" G="0" B="0" A="1" /><br> 112 <Constant1 R="0" G="0" B="0" A="1" /><br> 113 <Constant2 R="0" G="0" B="0" A="1" /><br> 114 <Constant3 R="0" G="0" B="0" A="1" /><br> 115 <Constant1 R="0" G="0" B="0" A="1" /><br> 116 <Constant5 R="0" G="0" B="0" A="1" /><br> 117 </MaterialColor><br> 118 <Rasterization CullingMode="BackFace" IsPolygonOffsetEnabled="false" PolygonOffsetFactor="0" PolygonOffsetUnit="0" /><br> 119 <TextureCoordinators><br> 120 <TextureCoordinatorCtr SourceCoordinate="0" MappingMethod="UvCoordinateMap" ReferenceCamera="0" MatrixMode="DccMaya" ScaleS="1" ScaleT="1" Rotate="0" TranslateS="0" TranslateT="0" /><br> 121 </TextureCoordinators><br> 122 <TextureMappers><br> 123 <PixelBasedTextureMapperCtr><br> 124 <TextureReference>Textures["Number.1"]@file:Textures/Number.1.ctex</TextureReference><br> 125 <StandardTextureSamplerCtr MinFilter="Linear" MagFilter="Linear" WrapS="Repeat" WrapT="Repeat" MinLod="0" LodBias="0"><br> 126 <BorderColor R="0" G="0" B="0" A="1" /><br> 127 </StandardTextureSamplerCtr><br> 128 </PixelBasedTextureMapperCtr><br> 129 </TextureMappers><br> 130 <FragmentShader LayerConfig="ConfigurationType0"><br> 131 <BufferColor R="0" G="0" B="0" A="1" /><br> 132 <FragmentBump BumpTextureIndex="Texture0" BumpMode="NotUsed" IsBumpRenormalize="false" /><br> 133 <FragmentLighting FresnelConfig="No" IsClampHighLight="false" IsDistribution0Enabled="false" IsDistribution1Enabled="false" IsGeometricFactor0Enabled="false" IsGeometricFactor1Enabled="false" IsReflectionEnabled="false" /><br> 134 <FragmentLightingTable><br> 135 <ReflectanceRSampler IsAbs="true" Input="CosNormalHalf" Scale="One"><br> 136 <NullLookupTableCtr /><br> 137 </ReflectanceRSampler><br> 138 <ReflectanceGSampler IsAbs="true" Input="CosNormalHalf" Scale="One"><br> 139 <NullLookupTableCtr /><br> 140 </ReflectanceGSampler><br> 141 <ReflectanceBSampler IsAbs="true" Input="CosNormalHalf" Scale="One"><br> 142 <NullLookupTableCtr /><br> 143 </ReflectanceBSampler><br> 144 <Distribution0Sampler IsAbs="true" Input="CosNormalHalf" Scale="One"><br> 145 <NullLookupTableCtr /><br> 146 </Distribution0Sampler><br> 147 <Distribution1Sampler IsAbs="true" Input="CosNormalHalf" Scale="One"><br> 148 <NullLookupTableCtr /><br> 149 </Distribution1Sampler><br> 150 <FresnelSampler IsAbs="true" Input="CosNormalHalf" Scale="One"><br> 151 <NullLookupTableCtr /><br> 152 </FresnelSampler><br> 153 </FragmentLightingTable><br> 154 <TextureCombiners><br> 155 <strong><TextureCombinerCtr CombineRgb="Modulate" CombineAlpha="Modulate" ScaleRgb="One" ScaleAlpha="One" Constant="Constant0" BufferInputRgb="PreviousBuffer" BufferInputAlpha="PreviousBuffer"></strong><br> 156 <SourceRgb Source0="FragmentPrimaryColor" Source1="Texture0" Source2="Constant" /><br> 157 <OperandRgb Operand0="Color" Operand1="Color" Operand2="Color" /><br> 158 <SourceAlpha Source0="PrimaryColor" Source1="Texture0" Source2="Constant" /><br> 159 <OperandAlpha Operand0="Alpha" Operand1="Alpha" Operand2="Alpha" /><br> 160 <strong></TextureCombinerCtr></strong><br> 161 </TextureCombiners><br> 162 <AlphaTest IsTestEnabled="false" TestFunction="Always" TestReference="0" /><br> 163 </FragmentShader><br> 164 <FragmentOperation><br> 165 <DepthOperation IsTestEnabled="true" TestFunction="Less" IsMaskEnabled="true" /><br> 166 <BlendOperation Mode="NotUsed" LogicOperation="Copy"><br> 167 <RgbParameter BlendFunctionSource="SourceAlpha" BlendFunctionDestination="OneMinusSourceAlpha" BlendEquation="FuncAdd" /><br> 168 <AlphaParameter BlendFunctionSource="One" BlendFunctionDestination="Zero" BlendEquation="FuncAdd" /><br> 169 <BlendColor R="0" G="0" B="0" A="1" /><br> 170 </BlendOperation><br> 171 </FragmentOperation><br> 172 </MaterialCtr><br> 173</Materials><br> 174</pre></td> 175</tr></table> 176 <hr><p>CONFIDENTIAL</p></body> 177</html>