]> git.mxchange.org Git - simgear.git/commitdiff
Add a node mask bit for permanent lights (needed by Rembrandt)
authorFrederic Bouvier <fredfgfs01@free.fr>
Mon, 16 Jul 2012 18:06:53 +0000 (20:06 +0200)
committerFrederic Bouvier <fredfgfs01@free.fr>
Mon, 16 Jul 2012 18:06:53 +0000 (20:06 +0200)
simgear/scene/tgdb/obj.cxx
simgear/scene/util/RenderConstants.hxx

index 4263060e2b6c68b85f8be34a6f9afef310ab9697..f8a2be17320047f7ed9e456dc88e1ca61693930a 100644 (file)
@@ -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);
   }
   
index c9845cf3af15b61509023275444903d0a16686b3..eec6ac952bfe3a7a3956426402562e253b07712d 100644 (file)
@@ -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: