From 284bc364fe01493ec698ead3299ccbe262093423 Mon Sep 17 00:00:00 2001 From: ehofman Date: Wed, 3 Mar 2010 10:26:25 +0000 Subject: [PATCH] Lauri Peltonen: turn on clouds depth sorting --- simgear/scene/sky/cloudfield.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/simgear/scene/sky/cloudfield.cxx b/simgear/scene/sky/cloudfield.cxx index 829a5585..b99a2d16 100644 --- a/simgear/scene/sky/cloudfield.cxx +++ b/simgear/scene/sky/cloudfield.cxx @@ -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; } -- 2.39.5