]> git.mxchange.org Git - simgear.git/commitdiff
Lauri Peltonen: turn on clouds depth sorting
authorehofman <ehofman>
Wed, 3 Mar 2010 10:26:25 +0000 (10:26 +0000)
committerTim Moore <timoore33@gmail.com>
Wed, 3 Mar 2010 22:11:01 +0000 (23:11 +0100)
simgear/scene/sky/cloudfield.cxx

index 829a55852996ced6aaef997eb1800ac22d6ee53c..b99a2d167e904daf723710c5c982e50e376f02ce 100644 (file)
@@ -132,7 +132,8 @@ bool SGCloudField::reposition( const SGVec3f& p, const SGVec3f& up, double lon,
         field_transform->setMatrix( LAT*LON*T );
     }
     
-    field_root->getStateSet()->setRenderBinDetails(asl, "DepthSortedBin");
+    // Render the clouds in order from farthest away layer to nearest one.
+    field_root->getStateSet()->setRenderBinDetails(CLOUDS_BIN, "DepthSortedBin");
 
     return true;
 }