scrawl c00532d82d Add LightStateCache to avoid redundantly setting the same gl_Light
Normally, osg::State would do this for us (via lastAppliedAttribute), but since we're using a custom StateAttribute to apply all lights at once, we have to track ourselves.

Further reduction of GL calls in a typical scene by ~2%
2017-02-07 23:37:57 +01:00
..
2016-02-12 14:46:45 +01:00
2016-01-03 16:43:20 +01:00
2016-05-18 12:17:26 -04:00
2016-08-14 16:44:11 +02:00