From 74116057a7d58ba7a50063bf4bd65254246e33e6 Mon Sep 17 00:00:00 2001 From: mfranz Date: Thu, 1 May 2008 12:21:52 +0000 Subject: [PATCH] Till BUSCH: enable HOT intersection tests on random buildings --- simgear/scene/tgdb/obj.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simgear/scene/tgdb/obj.cxx b/simgear/scene/tgdb/obj.cxx index 7576c049..dbfd660a 100644 --- a/simgear/scene/tgdb/obj.cxx +++ b/simgear/scene/tgdb/obj.cxx @@ -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); } -- 2.39.5