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>SourceRgb</title> 7 <link rel="stylesheet" href="../css/mainpage.css" type="text/css" /> 8 </head> 9 <body> 10 <h1><SourceRgb></h1> 11 <h2>Description</h2> 12 <p> 13 Source for RGB values. 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>TextureCombinerSourceKind</td><th>Source0</th><td> 18 Texture combiner's first source. 19 </td></tr><tr><td>TextureCombinerSourceKind</td><th>Source1</th><td> 20 Texture combiner's second source. 21 </td></tr><tr><td>TextureCombinerSourceKind</td><th>Source2</th><td> 22 Texture combiner's third source. 23 </td></tr></table> 24 <h2>TextureCombinerSourceKind Enumerated Type</h2> 25 <table class="arguments"> 26<thead><tr><td>Value</td><td>Description</td></tr></thead><tr><th>Texture0</th><td> 27 Texture 0. 28 </td></tr><tr><th>Texture1</th><td> 29 Texture 1. 30 </td></tr><tr><th>Texture2</th><td> 31 Texture 2. 32 </td></tr><tr><th>Texture3</th><td> 33 Texture 3. Used as a procedural texture. 34 </td></tr><tr><th><CODE>Constant</CODE></th><td> 35 Contant color. 36 </td></tr><tr><th>PrimaryColor</th><td> 37 The fragment color input to Texture Combiner 0 before the texture process. 38 </td></tr><tr><th>Previous</th><td> 39 The fragment color input from the previous texture combiner. 40 </td></tr><tr><th>PreviousBuffer</th><td> 41 The color input from the previous texture combiner buffer. 42 </td></tr><tr><th>FragmentPrimaryColor</th><td> 43 The primary color of the fragment light. Represents the diffuse, ambient and emissive colors. 44 </td></tr><tr><th>FragmentSecondaryColor</th><td> 45 The secondary color of the fragment light. Represents the specular color. 46 </td></tr></table> 47 48<h2>Example Output</h2> 49 50<table> 51<tr> 52<td><pre> 53<Materials><br> 54 <MaterialCtr Name="lambert2" IsCompressible="true" IsFragmentLightEnabled="true" IsVertexLightEnabled="false" IsHemiSphereLightEnabled="false" IsHemiSphereOcclusionEnabled="false" IsFogEnabled="false" TextureCoordinateConfig="Config0120" TranslucencyKind="Opaque" ShaderProgramDescriptionIndex="-1" ShaderBinaryKind="Default"><br> 55 <ShaderReference /><br> 56 <MaterialColor VertexColorScale="1"><br> 57 <Emission R="0" G="0" B="0" A="0" /><br> 58 <Ambient R="1" G="1" B="1" A="0" /><br> 59 <Diffuse R="1" G="1" B="1" A="1" /><br> 60 <Specular0 R="1" G="1" B="1" A="0" /><br> 61 <Specular1 R="0" G="0" B="0" A="0" /><br> 62 <Constant0 R="0" G="0" B="0" A="1" /><br> 63 <Constant1 R="0" G="0" B="0" A="1" /><br> 64 <Constant2 R="0" G="0" B="0" A="1" /><br> 65 <Constant3 R="0" G="0" B="0" A="1" /><br> 66 <Constant1 R="0" G="0" B="0" A="1" /><br> 67 <Constant5 R="0" G="0" B="0" A="1" /><br> 68 </MaterialColor><br> 69 <Rasterization CullingMode="BackFace" IsPolygonOffsetEnabled="false" PolygonOffsetFactor="0" PolygonOffsetUnit="0" /><br> 70 <TextureCoordinators><br> 71 <TextureCoordinatorCtr SourceCoordinate="0" MappingMethod="UvCoordinateMap" ReferenceCamera="0" MatrixMode="DccMaya" ScaleS="1" ScaleT="1" Rotate="0" TranslateS="0" TranslateT="0" /><br> 72 </TextureCoordinators><br> 73 <TextureMappers><br> 74 <PixelBasedTextureMapperCtr><br> 75 <TextureReference>Textures["Number.1"]@file:Textures/Number.1.ctex</TextureReference><br> 76 <StandardTextureSamplerCtr MinFilter="Linear" MagFilter="Linear" WrapS="Repeat" WrapT="Repeat" MinLod="0" LodBias="0"><br> 77 <BorderColor R="0" G="0" B="0" A="1" /><br> 78 </StandardTextureSamplerCtr><br> 79 </PixelBasedTextureMapperCtr><br> 80 </TextureMappers><br> 81 <FragmentShader LayerConfig="ConfigurationType0"><br> 82 <BufferColor R="0" G="0" B="0" A="1" /><br> 83 <FragmentBump BumpTextureIndex="Texture0" BumpMode="NotUsed" IsBumpRenormalize="false" /><br> 84 <FragmentLighting FresnelConfig="No" IsClampHighLight="false" IsDistribution0Enabled="false" IsDistribution1Enabled="false" IsGeometricFactor0Enabled="false" IsGeometricFactor1Enabled="false" IsReflectionEnabled="false" /><br> 85 <FragmentLightingTable><br> 86 <ReflectanceRSampler IsAbs="true" Input="CosNormalHalf" Scale="One"><br> 87 <NullLookupTableCtr /><br> 88 </ReflectanceRSampler><br> 89 <ReflectanceGSampler IsAbs="true" Input="CosNormalHalf" Scale="One"><br> 90 <NullLookupTableCtr /><br> 91 </ReflectanceGSampler><br> 92 <ReflectanceBSampler IsAbs="true" Input="CosNormalHalf" Scale="One"><br> 93 <NullLookupTableCtr /><br> 94 </ReflectanceBSampler><br> 95 <Distribution0Sampler IsAbs="true" Input="CosNormalHalf" Scale="One"><br> 96 <NullLookupTableCtr /><br> 97 </Distribution0Sampler><br> 98 <Distribution1Sampler IsAbs="true" Input="CosNormalHalf" Scale="One"><br> 99 <NullLookupTableCtr /><br> 100 </Distribution1Sampler><br> 101 <FresnelSampler IsAbs="true" Input="CosNormalHalf" Scale="One"><br> 102 <NullLookupTableCtr /><br> 103 </FresnelSampler><br> 104 </FragmentLightingTable><br> 105 <TextureCombiners><br> 106 <TextureCombinerCtr CombineRgb="Modulate" CombineAlpha="Modulate" ScaleRgb="One" ScaleAlpha="One" Constant="Constant0" BufferInputRgb="PreviousBuffer" BufferInputAlpha="PreviousBuffer"><br> 107 <strong><SourceRgb Source0="FragmentPrimaryColor" Source1="Texture0" Source2="Constant" /></strong><br> 108 <OperandRgb Operand0="Color" Operand1="Color" Operand2="Color" /><br> 109 <SourceAlpha Source0="PrimaryColor" Source1="Texture0" Source2="Constant" /><br> 110 <OperandAlpha Operand0="Alpha" Operand1="Alpha" Operand2="Alpha" /><br> 111 </TextureCombinerCtr><br> 112 </TextureCombiners><br> 113 <AlphaTest IsTestEnabled="false" TestFunction="Always" TestReference="0" /><br> 114 </FragmentShader><br> 115 <FragmentOperation><br> 116 <DepthOperation IsTestEnabled="true" TestFunction="Less" IsMaskEnabled="true" /><br> 117 <BlendOperation Mode="NotUsed" LogicOperation="Copy"><br> 118 <RgbParameter BlendFunctionSource="SourceAlpha" BlendFunctionDestination="OneMinusSourceAlpha" BlendEquation="FuncAdd" /><br> 119 <AlphaParameter BlendFunctionSource="One" BlendFunctionDestination="Zero" BlendEquation="FuncAdd" /><br> 120 <BlendColor R="0" G="0" B="0" A="1" /><br> 121 </BlendOperation><br> 122 </FragmentOperation><br> 123 </MaterialCtr><br> 124</Materials><br> 125</pre></td> 126</tr></table> 127 <hr><p>CONFIDENTIAL</p></body> 128</html>