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