]> git.mxchange.org Git - simgear.git/blobdiff - simgear/scene/sky/cloudfield.cxx
Cleanup some nonprinting characters make this file work
[simgear.git] / 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;
 }