openframeworks/openFrameworks — pull request #1018 by NickHardeman (2012-03-01 17:15:34+00:00)
Title: Light examples

Added some features in ofLight
- don't have to set light position every frame, called automatically through enable()
- moved init function to constructor to create lights
- added spotConcentration (exponent) vars and clamping for spotlights
- added spotCutoff vars and clamping for spotLight

Examples
MultiLight Example
- Uses all three light types, point, spot and directional
- turn on/off textured objects
http://www.flickr.com/photos/95943853@N00/6944163657/
http://www.flickr.com/photos/95943853@N00/6944163519/in/photostream/

Single Light Example
- point light highlighting rotating spheres
- color changing
http://www.flickr.com/photos/95943853@N00/6944163745/in/photostream/
http://www.flickr.com/photos/95943853@N00/6944163709/in/photostream/