Hello All,<br><br>I&#39;m working on adding lighting to the FieldTrip library (ticket <a href="http://trac.haskell.org/FieldTrip/ticket/16">http://trac.haskell.org/FieldTrip/ticket/16</a>). I have some initial data types here:<br>
<br><a href="http://hpaste.org/12975">http://hpaste.org/12975</a><br><br>I&#39;m thinking that the GContext will keep track of which of the 8 opengl lights are used and enable them if they are.<br><br>I was wondering what ideas folks have had with lighting. Some issues that are on my mind:<br>
<ul><li>OpenGL limits the number of lights to 8.</li><li>It would be nice, for a spotlight primitive, to allow the light&#39;s position and a point it is pointing toward to go through different transformations. This would allow a fixed light to follow an object, for example. I don&#39;t know yet how to provide this functionality.<br>
</li></ul>Thanks,<br><br>David<br>