From 2c54237fe5071d3f2e8a3bf22d0000c7bc485591 Mon Sep 17 00:00:00 2001 From: Frederic Bouvier Date: Mon, 25 Jun 2012 17:55:46 +0200 Subject: [PATCH] Don't render ocean tiles in the light pass --- simgear/scene/tgdb/SGOceanTile.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/simgear/scene/tgdb/SGOceanTile.cxx b/simgear/scene/tgdb/SGOceanTile.cxx index def796cd..cac90c19 100644 --- a/simgear/scene/tgdb/SGOceanTile.cxx +++ b/simgear/scene/tgdb/SGOceanTile.cxx @@ -43,6 +43,7 @@ #include #include +#include using namespace simgear; // Ocean tile with curvature and apron to hide cracks. The cracks are @@ -336,6 +337,7 @@ osg::Node* SGOceanTile(const SGBucket& b, SGMaterialLib *matlib, int latPoints, transform->setMatrix(osg::Matrix::rotate(toOsg(hlOr))* osg::Matrix::translate(toOsg(cartCenter))); transform->addChild(geode); - + transform->setNodeMask( ~simgear::MODELLIGHT_BIT ); + return transform; }