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>BlendOperation</title> 7 <link rel="stylesheet" href="../css/mainpage.css" type="text/css" /> 8 </head> 9 <body> 10 <h1><BlendOperation></h1> 11 <h2>Description</h2> 12 <p> 13 The bender. 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>LogicOperationCtr</td><th>LogicOperation</th><td> 18 Calculation method used for logical operations. 19 </td></tr><tr><td>BlendModeCtr</td><th><CODE>Mode</CODE></th><td> 20 The process used for blending. 21 </td></tr></table> 22 <h2>LogicOperationCtr Enumerated Type</h2> 23 <table class="arguments"> 24<thead><tr><td>Value</td><td>Description</td></tr></thead><tr><th><CODE>Clear</CODE></th><td> 25 Sets all bits to 0. 26 </td></tr><tr><th><CODE>Copy</CODE></th><td> 27 Takes the bit values of the source color. 28 </td></tr><tr><th>NoOp</th><td> 29 Takes the bit values of the destination color. 30 </td></tr><tr><th><CODE>Set</CODE></th><td> 31 Sets all bits to 1. 32 </td></tr><tr><th>CopyInverted</th><td> 33 Takes the inverted bit values of the source color. 34 </td></tr><tr><th>Invert</th><td> 35 Takes the inverted values of the destination color. 36 </td></tr><tr><th>AndReverse</th><td> 37 Takes the logical product of the source color and inverse bit values of the destination color. 38 </td></tr><tr><th>OrReverse</th><td> 39 Takes the logical sum of the source color and inverse bit values of the destination color. 40 </td></tr><tr><th>And</th><td> 41 Takes the logical AND of the source color and destination color. 42 </td></tr><tr><th>Or</th><td> 43 Takes the logical OR of the source color and destination color. 44 </td></tr><tr><th>Nand</th><td> 45 Takes the inverse bit values of the logical AND of the source color and destination color. 46 </td></tr><tr><th>Nor</th><td> 47 Takes the inverse bit values of the logical OR of the source color and destination color. 48 </td></tr><tr><th>Xor</th><td> 49 Takes the exclusive OR of the source color and destination color. 50 </td></tr><tr><th>Equiv</th><td> 51 Takes the inverse bit values of the exclusvie OR of the source color and destination color. 52 </td></tr><tr><th>AndInverted</th><td> 53 Takes the logical AND of the inverse bit values of the source color and the destination color. 54 </td></tr><tr><th>OrInverted</th><td> 55 Takes the logical OR of the inverse bit values of the source color and the destination color. 56 </td></tr></table> 57 <h2>BlendModeCtr Enumerated Type</h2> 58 <table class="arguments"> 59<thead><tr><td>Value</td><td>Description</td></tr></thead><tr><th>NotUsed</th><td> 60 Performs neither blending nor logical operations. 61 </td></tr><tr><th><CODE>Blend</CODE></th><td> 62 Use blending. 63 </td></tr><tr><th>SeparateBlend</th><td> 64 Use separate mode blending. 65 </td></tr><tr><th>Logic</th><td> 66 Use logical operations. 67 </td></tr></table> 68 69<h2>Example Output</h2> 70 71<table> 72<tr> 73<td><pre> 74<Materials><br> 75 <MaterialCtr Name="lambert2" IsCompressible="true" IsFragmentLightEnabled="true" IsVertexLightEnabled="false" IsHemiSphereLightEnabled="false" IsHemiSphereOcclusionEnabled="false" IsFogEnabled="false" TextureCoordinateConfig="Config0120" TranslucencyKind="Opaque" ShaderProgramDescriptionIndex="-1" ShaderBinaryKind="Default"><br> 76 <ShaderReference /><br> 77 <MaterialColor VertexColorScale="1"><br> 78 <Emission R="0" G="0" B="0" A="0" /><br> 79 <Ambient R="1" G="1" B="1" A="0" /><br> 80 <Diffuse R="1" G="1" B="1" A="1" /><br> 81 <Specular0 R="1" G="1" B="1" A="0" /><br> 82 <Specular1 R="0" G="0" B="0" A="0" /><br> 83 <Constant0 R="0" G="0" B="0" A="1" /><br> 84 <Constant1 R="0" G="0" B="0" A="1" /><br> 85 <Constant2 R="0" G="0" B="0" A="1" /><br> 86 <Constant3 R="0" G="0" B="0" A="1" /><br> 87 <Constant1 R="0" G="0" B="0" A="1" /><br> 88 <Constant5 R="0" G="0" B="0" A="1" /><br> 89 </MaterialColor><br> 90 <Rasterization CullingMode="BackFace" IsPolygonOffsetEnabled="false" PolygonOffsetFactor="0" PolygonOffsetUnit="0" /><br> 91 <TextureCoordinators><br> 92 <TextureCoordinatorCtr SourceCoordinate="0" MappingMethod="UvCoordinateMap" ReferenceCamera="0" MatrixMode="DccMaya" ScaleS="1" ScaleT="1" Rotate="0" TranslateS="0" TranslateT="0" /><br> 93 </TextureCoordinators><br> 94 <TextureMappers><br> 95 <PixelBasedTextureMapperCtr><br> 96 <TextureReference>Textures["Number.1"]@file:Textures/Number.1.ctex</TextureReference><br> 97 <StandardTextureSamplerCtr MinFilter="Linear" MagFilter="Linear" WrapS="Repeat" WrapT="Repeat" MinLod="0" LodBias="0"><br> 98 <BorderColor R="0" G="0" B="0" A="1" /><br> 99 </StandardTextureSamplerCtr><br> 100 </PixelBasedTextureMapperCtr><br> 101 </TextureMappers><br> 102 <FragmentShader LayerConfig="ConfigurationType0"><br> 103 <BufferColor R="0" G="0" B="0" A="1" /><br> 104 <FragmentBump BumpTextureIndex="Texture0" BumpMode="NotUsed" IsBumpRenormalize="false" /><br> 105 <FragmentLighting FresnelConfig="No" IsClampHighLight="false" IsDistribution0Enabled="false" IsDistribution1Enabled="false" IsGeometricFactor0Enabled="false" IsGeometricFactor1Enabled="false" IsReflectionEnabled="false" /><br> 106 <FragmentLightingTable><br> 107 <ReflectanceRSampler IsAbs="true" Input="CosNormalHalf" Scale="One"><br> 108 <NullLookupTableCtr /><br> 109 </ReflectanceRSampler><br> 110 <ReflectanceGSampler IsAbs="true" Input="CosNormalHalf" Scale="One"><br> 111 <NullLookupTableCtr /><br> 112 </ReflectanceGSampler><br> 113 <ReflectanceBSampler IsAbs="true" Input="CosNormalHalf" Scale="One"><br> 114 <NullLookupTableCtr /><br> 115 </ReflectanceBSampler><br> 116 <Distribution0Sampler IsAbs="true" Input="CosNormalHalf" Scale="One"><br> 117 <NullLookupTableCtr /><br> 118 </Distribution0Sampler><br> 119 <Distribution1Sampler IsAbs="true" Input="CosNormalHalf" Scale="One"><br> 120 <NullLookupTableCtr /><br> 121 </Distribution1Sampler><br> 122 <FresnelSampler IsAbs="true" Input="CosNormalHalf" Scale="One"><br> 123 <NullLookupTableCtr /><br> 124 </FresnelSampler><br> 125 </FragmentLightingTable><br> 126 <TextureCombiners><br> 127 <TextureCombinerCtr CombineRgb="Modulate" CombineAlpha="Modulate" ScaleRgb="One" ScaleAlpha="One" Constant="Constant0" BufferInputRgb="PreviousBuffer" BufferInputAlpha="PreviousBuffer"><br> 128 <SourceRgb Source0="FragmentPrimaryColor" Source1="Texture0" Source2="Constant" /><br> 129 <OperandRgb Operand0="Color" Operand1="Color" Operand2="Color" /><br> 130 <SourceAlpha Source0="PrimaryColor" Source1="Texture0" Source2="Constant" /><br> 131 <OperandAlpha Operand0="Alpha" Operand1="Alpha" Operand2="Alpha" /><br> 132 </TextureCombinerCtr><br> 133 </TextureCombiners><br> 134 <AlphaTest IsTestEnabled="false" TestFunction="Always" TestReference="0" /><br> 135 </FragmentShader><br> 136 <FragmentOperation><br> 137 <DepthOperation IsTestEnabled="true" TestFunction="Less" IsMaskEnabled="true" /><br> 138 <strong><BlendOperation Mode="NotUsed" LogicOperation="Copy"></strong><br> 139 <RgbParameter BlendFunctionSource="SourceAlpha" BlendFunctionDestination="OneMinusSourceAlpha" BlendEquation="FuncAdd" /><br> 140 <AlphaParameter BlendFunctionSource="One" BlendFunctionDestination="Zero" BlendEquation="FuncAdd" /><br> 141 <BlendColor R="0" G="0" B="0" A="1" /><br> 142 <strong></BlendOperation></strong><br> 143 </FragmentOperation><br> 144 </MaterialCtr><br> 145</Materials><br> 146</pre></td> 147</tr></table> 148 <hr><p>CONFIDENTIAL</p></body> 149</html>