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