1<html> 2<head> 3<title>Defining Cameras</title> 4<link rel="stylesheet" href="../css/mainpage.css" type="text/css"> 5<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> 6</head> 7 8<body> 9 10<h1>Defining Lights</h1> 11 12<h2>Overview</h2> 13<p> 14Light data are defined in <CODE><FragmentLightCtr></CODE> below <CODE><Lights></CODE>. Where there are multiple sets of light data, there are multiple <CODE><FragmentLightCtr></CODE> tags below the <CODE><Lights></CODE> tag. <CODE><FragmentLightCtr></CODE> contains the following light-related information: 15</p> 16 17<h2>Light Type</h2> 18<p> 19There are three light types, as listed below. The light type is specified by the <CODE>LightKind</CODE> attribute of the <CODE><FragmentLightCtr></CODE> tag. 20</p> 21 22<ul> 23<li>Directional Light</li> 24<p>When <CODE>DirectionalLight</CODE> is specified for the <CODE>LightKind</CODE> attribute, the light type is a directional light.</p> 25 26<li>Point Light</li> 27<p>When <CODE>PointLight</CODE> is specified for the <CODE>LightKind </CODE>attribute, the light type is a point light.</p> 28 29<li>Spot Light</li> 30<p>When <CODE>SpotLight</CODE> is specified for the <CODE>LightKind </CODE>attribute, the light type is a spot light.</p> 31</ul> 32 33<h2>Light SRT Information</h2> 34<p> 35This stores information about the light's position, rotation and scaling. 36</p> 37 38<table> 39<tr><td> 40<pre> 41<NintendoWareIntermediateFile><br> 42 <GraphicsContentCtr><br> 43 <Lights><br> 44 <FragmentLightCtr><br> 45 <Transform><br> 46</pre> 47</td></tr> 48</table> 49 50<h2>Light Color Information</h2> 51<p> 52The four following parameters are stored as the light color information. These color parameters are used for all the types of lights. 53</p> 54 55<ul> 56<li>Ambient color</li> 57<table> 58<tr><td> 59<pre> 60<NintendoWareIntermediateFile><br> 61 <GraphicsContentCtr><br> 62 <Lights><br> 63 <FragmentLightCtr><br> 64 <Ambient><br> 65</pre> 66</td></tr> 67</table> 68<li>Diffuse Color</li> 69<table> 70<tr><td> 71<pre> 72<NintendoWareIntermediateFile><br> 73 <GraphicsContentCtr><br> 74 <Lights><br> 75 <FragmentLightCtr><br> 76 <Diffuse><br> 77</pre> 78</td></tr> 79</table> 80<li>Specular Color 0</li> 81<table> 82<tr><td> 83<pre> 84<NintendoWareIntermediateFile><br> 85 <GraphicsContentCtr><br> 86 <Lights><br> 87 <FragmentLightCtr><br> 88 <Specular0><br> 89</pre> 90</td></tr> 91</table> 92<li>Specular Color 1</li> 93<table> 94<tr><td> 95<pre> 96<NintendoWareIntermediateFile><br> 97 <GraphicsContentCtr><br> 98 <Lights><br> 99 <FragmentLightCtr><br> 100 <Specular1><br> 101</pre> 102</td></tr> 103</table> 104</ul> 105 106<h2>Light direction</h2> 107<p> 108The direction that the light is pointing is specified by a vector. This parameter is configured when specifying the direction of a directional light or a spot light. 109</p> 110 111<table> 112<tr><td> 113<pre> 114<NintendoWareIntermediateFile><br> 115 <GraphicsContentCtr><br> 116 <Lights><br> 117 <FragmentLightCtr><br> 118 <Direction><br> 119</pre> 120</td></tr> 121</table> 122 123<h2>Attenuation Inside Spotlight Cone</h2> 124<p> 125This is the setting for the attenuation inside the spotlight cone. This specifies a table used with the <CODE><ReferenceLookupTableCtr></CODE> tag. This table is defined as a lookup table of cosine values of the angle formed from the light vector and the spot-direction vector. 126</p> 127 128<table> 129<tr><td> 130<pre> 131<NintendoWareIntermediateFile><br> 132 <GraphicsContentCtr><br> 133 <Lights><br> 134 <FragmentLightCtr><br> 135 <AngleSampler><br> 136 <ReferenceLookupTableCtr><br> 137 <LookupTableSetContentReferenceCtr><br> 138</pre> 139</td></tr> 140</table> 141 142<hr><p>CONFIDENTIAL</p></body> 143</html> 144