Add a node mask bit for permanent lights (needed by Rembrandt)

This commit is contained in:
Frederic Bouvier
2012-07-16 20:06:53 +02:00
parent e6ab3ddb7d
commit 3ba312116b
2 changed files with 3 additions and 2 deletions
+1 -1
View 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);
}
+2 -1
View 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: