]> git.mxchange.org Git - simgear.git/commit
Use node masks and shared state sets to manage ground lights
authortimoore <timoore>
Thu, 13 Dec 2007 23:30:24 +0000 (23:30 +0000)
committertimoore <timoore>
Thu, 13 Dec 2007 23:30:24 +0000 (23:30 +0000)
commit68c1cfed46fd65d3a1a8f60311f5394ebc68e574
tree2aee2e956bdc68ec6e100595419870c58da9cf99
parent1159784538da59bf3cc3d4cf918078a21e23df64
Use node masks and shared state sets to manage ground lights

Do away with the switch in each terrain tile for the ground lights. They are
turned on by node masks now.

Share state sets among all the light nodes and manage the fog values through a
"GroundLightManager" instead of having separate state sets and callback
functions for each group in each tile.
simgear/scene/tgdb/GroundLightManager.cxx [new file with mode: 0644]
simgear/scene/tgdb/GroundLightManager.hxx [new file with mode: 0644]
simgear/scene/tgdb/Makefile.am
simgear/scene/tgdb/obj.cxx
simgear/scene/util/RenderConstants.hxx