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