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>FragmentLightCtr</title> 7 <link rel="stylesheet" href="../css/mainpage.css" type="text/css" /> 8 </head> 9 <body> 10 <h1><FragmentLightCtr></h1> 11 <h2>Description</h2> 12 <p> 13 Tag representing fragment lights. Includes <CODE><Diffuse></CODE>, <CODE><Specular0></CODE>, <<CODE>Specular1></CODE>, <CODE><Direction></CODE> and <CODE><AngleSampler></CODE>, representing the color information and attenuation in the child hierarchy. 14 </p> 15<p> 16The light type is specified by the <B><SPAN class="argument">LightKind</SPAN></B> attribute. There are three valid types: <B>DirectionalLight</B>, <B>PointLight</B> and <B>SpotLight</B>. 17</p> 18 <h2>Attributes</h2> 19 <table class="arguments"> 20<thead><tr><td>Type</td><td>Attributes</td><td>Description</td></tr></thead><tr><td /><th>DistanceAttenuationEnd</th><td> 21 Distance to where attenuation of light brightness ends. 22 </td></tr><tr><td /><th>DistanceAttenuationStart</th><td> 23 Distance to where attenuation of light brightness starts. 24 </td></tr><tr><td /><th>IsBranchVisible</th><td> 25 Flag indicating whether items below node are shown. 26 </td></tr><tr><td /><th>IsDistanceAttenuationEnabled</th><td> 27 Flag enabling distance attenuation. 28 </td></tr><tr><td /><th>IsInheritingDirectionRotate</th><td> 29 Flag enabling the inheriting of parent node's rotation. 30 </td></tr><tr><td /><th>IsTwoSideDiffuse</th><td> 31 Flag enabling two-sided lighting for Diffuse color. 32 </td></tr><tr><td>LightKindCtr</td><th>LightKind</th><td> 33 The type of the light source. 34 </td></tr><tr><td /><th>Name</th><td> 35 Name. 36 </td></tr></table> 37 <h2><CODE>LightKindCtr</CODE> Enumerated Type</h2> 38 <table class="arguments"> 39<thead><tr><td>Value</td><td>Description</td></tr></thead><tr><th>DirectionalLight</th><td> 40 A parallel light source. 41 </td></tr><tr><th>PointLight</th><td> 42 A point light source. 43 </td></tr><tr><th>SpotLight</th><td> 44 A spot light source. 45 </td></tr></table> 46 47<h2>Example Output</h2> 48 49<table> 50<tr> 51<td><pre> 52<strong><FragmentLightCtr Name="directionalLight1" IsBranchVisible="true" LightKind="DirectionalLight" IsTwoSideDiffuse="false" IsDistanceAttenuationEnabled="false" DistanceAttenuationStart="0" DistanceAttenuationEnd="1" IsInheritingDirectionRotate="false"></strong><br> 53 <AnimationGroupDescriptions /><br> 54 ..omitted..<br> 55<strong></FragmentLightCtr></strong><br> 56</pre></td> 57</tr></table> 58 59 <hr><p>CONFIDENTIAL</p></body> 60</html>