From: Frederic Bouvier Date: Mon, 16 Jul 2012 18:06:53 +0000 (+0200) Subject: Add a node mask bit for permanent lights (needed by Rembrandt) X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=3ba312116b0c602733e5f62b52870e9d3e2677cf;p=simgear.git Add a node mask bit for permanent lights (needed by Rembrandt) --- diff --git a/simgear/scene/tgdb/obj.cxx b/simgear/scene/tgdb/obj.cxx index 4263060e..f8a2be17 100644 --- a/simgear/scene/tgdb/obj.cxx +++ b/simgear/scene/tgdb/obj.cxx @@ -1160,7 +1160,7 @@ SGLoadBTG(const std::string& path, const simgear::SGReaderWriterOptions* options osg::LOD* lightLOD = new osg::LOD; lightLOD->addChild(lightGroup.get(), 0, 30000); // VASI is always on, so doesn't use light bits. - lightLOD->setNodeMask(LIGHTS_BITS | MODEL_BIT); + lightLOD->setNodeMask(LIGHTS_BITS | MODEL_BIT | PERMANENTLIGHT_BIT); transform->addChild(lightLOD); } diff --git a/simgear/scene/util/RenderConstants.hxx b/simgear/scene/util/RenderConstants.hxx index c9845cf3..eec6ac95 100644 --- a/simgear/scene/util/RenderConstants.hxx +++ b/simgear/scene/util/RenderConstants.hxx @@ -44,7 +44,8 @@ enum NodeMask { // Everything else that isn't terrain. Initially for clouds; // eventually for other models? MODEL_BIT = (1 << 12), - MODELLIGHT_BIT = (1 << 13) + MODELLIGHT_BIT = (1 << 13), + PERMANENTLIGHT_BIT = (1 << 14) }; // Theory of bin numbering: