]> git.mxchange.org Git - simgear.git/commitdiff
Don't render ocean tiles in the light pass
authorFrederic Bouvier <fredfgfs01@free.fr>
Mon, 25 Jun 2012 15:55:46 +0000 (17:55 +0200)
committerFrederic Bouvier <fredfgfs01@free.fr>
Mon, 25 Jun 2012 15:55:46 +0000 (17:55 +0200)
simgear/scene/tgdb/SGOceanTile.cxx

index def796cd293e01a8fb237c3e0540b12c77900a63..cac90c191d72928916fe5751f666cd41ebc4f8a3 100644 (file)
@@ -43,6 +43,7 @@
 #include <simgear/scene/material/matlib.hxx>
 
 #include <simgear/scene/util/VectorArrayAdapter.hxx>
+#include <simgear/scene/util/SGNodeMasks.hxx>
 
 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;
 }