1
edit
Changes
no edit summary
= Cube Light Tag Reference =
[[XML_3D_-_BTS530/630 Project|Back To XML 3D Main Page]]
== Introduction ==
== Tag Attributes ==
* Attributenumber* Attribute* '''Usage:''' <light number="3" />.** OpenGL handles many different lights at the same time and therefore requires an identifier to access them.* Attribute* This number is restricted from 1 to 10.* type** '''Usage:''' <light type="diffuse" />.** This attributes specifies the type of light that will be created and the way it can be used.** The attribute only accepts the values of 'ambient' and 'diffuse'.* color** '''Usage:''' <light color="#FF00FF" />.** This determines the color of the light that is being cast on the object. This values should be in Hex format.* position** '''Usage:''' <light position="0.3, 0.6, 2.1" />.** The ''position'' attribute specifies the 3D location of the light source.** Three values must be specified as a 3D vector separated by commas.* orientation ** '''Usage:''' <light orientation="4.1, 6.3, -2.8" />.** The ''orientation'' defines the direction the light source is pointing at. ** This attribute only applies to Diffuse Lighting and is ignored if used in another case.** The default is {0.0, 0.0, 1.0} if omited.
== Syntax ==
<pre>
</pre>
== References ==
* Site[http://www.falloutsoftware.com/tutorials/gl/gl8.htm OpenGL Lighting Example]