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>StandardTextureSamplerCtr</title> 7 <link rel="stylesheet" href="../css/mainpage.css" type="text/css" /> 8 </head> 9 <body> 10 <h1><StandardTextureSamplerCtr></h1> 11 <h2>Description</h2> 12 <p> 13 This tag is used to manage standard texture sampler settings. 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>LodBias</th><td> 18 The bias value applied to the mipmap LOD. 19 </td></tr><tr><td>TextureSamplerMagFilter</td><th><CODE>MagFilter</CODE></th><td> 20 The setting for texture magnification filtering. 21 </td></tr><tr><td>TextureSamplerMinFilter</td><th><CODE>MinFilter</CODE></th><td> 22 The setting for texture minimization filtering. 23 </td></tr><tr><td /><th>MinLod</th><td> 24 The minimum scale coefficient of the texture image for the mipmap polygon size. 25 </td></tr><tr><td>TextureSamplerWrap</td><th>WrapS</th><td> 26 The wrap method in the S direction of the texture. 27 </td></tr><tr><td>TextureSamplerWrap</td><th>WrapT</th><td> 28 The wrap method in the S direction of the texture. 29 </td></tr></table> 30 <h2>TextureSamplerMagFilter Enumerated Type</h2> 31 <table class="arguments"> 32<thead><tr><td>Value</td><td>Description</td></tr></thead><tr><th>Nearest</th><td>Uses the color of the nearest pixel.</td></tr><tr><th>Linear</th><td>Uses the color of the weighted average of the four nearest pixels.</td></tr></table> 33 <h2>TextureSamplerMinFilter Enumerated Type</h2> 34 <table class="arguments"> 35<thead><tr><td>Value</td><td>Description</td></tr></thead><tr><th>Nearest</th><td>Uses the color of the nearest pixel.</td></tr><tr><th>Linear</th><td>Uses the color of the weighted average of the four nearest pixels.</td></tr><tr><th>NearestMipmapNearest</th><td> 36 Uses the color of the nearest pixel in the nearest mipmap. 37 </td></tr><tr><th>NearestMipmapLinear</th><td> 38 Uses the color of the weighted average of the four nearest pixels in the nearest mipmap. 39 </td></tr><tr><th>LinearMipmapNearest</th><td> 40 Uses the color of the weighted average of the nearest pixel in the two nearest mipmaps. 41 </td></tr><tr><th>LinearMipmapLinear</th><td> 42 Uses the color of the weighted average of the nearest four pixels in the two nearest mipmaps. 43 </td></tr></table> 44 <h2>TextureSamplerWrap Enumerated Type</h2> 45 <table class="arguments"> 46<thead><tr><td>Value</td><td>Description</td></tr></thead><tr><th>Repeat</th><td>Repeats at the texture edge.</td></tr><tr><th>MirroredRepeat</th><td>Mirrors and repeats at the texture edge.</td></tr><tr><th>ClampToEdge</th><td>Extends the pixels at the edge of a texture.</td></tr><tr><th>ClampToBorder</th><td>Extends the border color at the edge of a texture.</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 <strong><StandardTextureSamplerCtr MinFilter="Linear" MagFilter="Linear" WrapS="Repeat" WrapT="Repeat" MinLod="0" LodBias="0"></strong><br> 77 <BorderColor R="0" G="0" B="0" A="1" /><br> 78 <strong></StandardTextureSamplerCtr></strong><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 <SourceRgb Source0="FragmentPrimaryColor" Source1="Texture0" Source2="Constant" /><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>