]> git.mxchange.org Git - simgear.git/blobdiff - simgear/scene/sky/cloudfield.cxx
Fix a NaN at higher altitudes: sin_beta could become greater than 1.0 which is hard...
[simgear.git] / simgear / scene / sky / cloudfield.cxx
index a567c91e0e81b8106d43ebca02270ca6894fe0d6..e861442868f4417d1b0ab57759b610af3fad85f7 100644 (file)
@@ -137,7 +137,7 @@ bool SGCloudField::reposition( const SGVec3f& p, const SGVec3f& up, double lon,
         field_transform->setMatrix( LAT*LON*T );
     }
     
-    field_root->getStateSet()->setRenderBinDetails(asl, "RenderBin");
+    field_root->getStateSet()->setRenderBinDetails(asl, "DepthSortedBin");
 
     return true;
 }