]> git.tdb.fi Git - libs/gl.git/commit
Don't store ProgramData in Lighting
authorMikko Rasa <tdb@tdb.fi>
Thu, 8 May 2014 17:55:53 +0000 (20:55 +0300)
committerMikko Rasa <tdb@tdb.fi>
Thu, 8 May 2014 17:55:53 +0000 (20:55 +0300)
commitce657d3b7783db9f3450162fbf07210ea1c8c661
treeff41613e240afed90f6a6f673ad7f7461267fd08
parent36ce025ec317bbe57719f94886d5d31932754d40
Don't store ProgramData in Lighting

It can't be kept up to date automatically, as Lighting can't track the
individual Lights' state.  It's also hard to make optimize out unnecessary
updates.  It's typically computed very few times per frame anyway, so the
performance hit is negligible (as opposed to something like Material,
which might get used hundreds or thousands of times per frame).
source/lighting.cpp
source/lighting.h
source/renderer.cpp