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>ShaderParameters</title> 7 <link rel="stylesheet" href="../css/mainpage.css" type="text/css" /> 8 </head> 9 <body> 10 <h1><ShaderParameters></h1> 11 <h2>Description</h2> 12 <p> 13These are the values that are set to the shader symbols of the shader being used by the material. <br>Each shader symbol type has these child elements:<br> <br> BoolShaderParameterCtr<br> Vector1ShaderParameterCtr<br> Vector2ShaderParameterCtr<br> Vector3ShaderParameterCtr<br> Vector4ShaderParameterCtr<br> <br> <br> To read about the shader symbol-related elements on the shader side, see <a href="cmdl__Shaders_ShaderProgramDescriptionCtr.html"><Symbols> </a>.<br> 14 </p> 15 16<h2>(Bool|Vector1|Vector2|Vector3|Vector4)ShaderParameterCtr</h2> 17 18<h3>Attributes</h3> 19 <table class="arguments"> 20<thead><tr><td>Type</td><td>Attributes</td><td>Description</td></tr></thead> 21<tr><td /><th>Name</th><td>The attribute name.</tr> 22</table> 23 24<p> 25Elements that represent default values are described by type in the child elements. 26</p> 27 28<h2>Example Output</h2> 29 30<table> 31<tr> 32<td><pre> 33<Materials><br> 34 <MaterialCtr Name="lambert2" IsCompressible="true" IsFragmentLightEnabled="true" IsVertexLightEnabled="false" IsHemiSphereLightEnabled="false" IsHemiSphereOcclusionEnabled="false" IsFogEnabled="false" TextureCoordinateConfig="Config0120" TranslucencyKind="Opaque" ShaderProgramDescriptionIndex="-1" ShaderBinaryKind="Default"><br> 35 <ShaderReference>Shaders["DefaultShader"]</ShaderReference><br> 36 <FragmentOperation><br> 37 :<br> 38 :<br> 39 </FragmentOperation><br> <strong> 40 <ShaderParameters><br> 41 <BoolShaderParameterCtr Name="test1"><br> 42 <boolean>true</boolean><br> 43 </BoolShaderParameterCtr><br> 44 <Vector4ShaderParameterCtr Name="test2"><br> 45 <Vector4Xml X="1" Y="2" Z="3" W="4" /><br> 46 </Vector4ShaderParameterCtr><br> 47 </ShaderParameters><br> </strong> 48 </MaterialCtr><br> 49</Materials><br> 50</pre></td> 51</tr></table> 52 53 <hr><p>CONFIDENTIAL</p></body> 54</html>