]> git.mxchange.org Git - simgear.git/commitdiff
Till BUSCH: enable HOT intersection tests on random buildings
authormfranz <mfranz>
Thu, 1 May 2008 12:21:52 +0000 (12:21 +0000)
committermfranz <mfranz>
Thu, 1 May 2008 12:21:52 +0000 (12:21 +0000)
simgear/scene/tgdb/obj.cxx

index 7576c0495feca9f79bd82b3db69fd386fdf0b5e4..dbfd660a58a3cd0761a9de23b9e6f88df9c283e3 100644 (file)
@@ -777,7 +777,7 @@ SGLoadBTG(const std::string& path, SGMaterialLib *matlib, bool calc_lights, bool
     if (randomObjects.valid()) objectLOD->addChild(randomObjects.get(), 0, 20000);
     if (randomForest.valid())  objectLOD->addChild(randomForest.get(), 0, 20000);
     
-    unsigned nodeMask = SG_NODEMASK_CASTSHADOW_BIT | SG_NODEMASK_RECIEVESHADOW_BIT;
+    unsigned nodeMask = SG_NODEMASK_CASTSHADOW_BIT | SG_NODEMASK_RECIEVESHADOW_BIT | SG_NODEMASK_TERRAIN_BIT;
     objectLOD->setNodeMask(nodeMask);
     transform->addChild(objectLOD);
   }