hedgewars/uWorld.pas
branchexperimental3D
changeset 4818 202eef454354
parent 4816 c2575faeac3d
child 4844 20b81fafd236
--- a/hedgewars/uWorld.pas	Sat Jan 15 18:35:59 2011 +0100
+++ b/hedgewars/uWorld.pas	Sun Jan 16 05:21:00 2011 +0100
@@ -71,6 +71,7 @@
       cStereo_Water_distant = 0.0125;
       cStereo_Land          = 0.0075;
       cStereo_Water_near    = 0.0025;
+      cStereo_Outside       = 0.0400;
 
 procedure InitWorld;
 var i, t: LongInt;
@@ -808,7 +809,6 @@
         end;
 
     DrawVisualGears(1);
-
     DrawGears;
 
     if SuddenDeathDmg then
@@ -842,11 +842,14 @@
         DrawWaves(-1, 50, - (cWaveHeight shr 1), 0);
 
 // everything after this ChangeDepth will be drawn outside the screen
-    ChangeDepth(RM, 0.045);
+// note: negative parallax gears should last very little for a smooth stereo effect
+    ChangeDepth(RM, cStereo_Outside);
     DrawVisualGears(2);
 
 // everything after this ResetDepth will be drawn at screen level (depth = 0)
+// note: everything that needs to be readable should be on this level
     ResetDepth(RM);
+    DrawVisualGears(3);
 
 {$WARNINGS OFF}
 // Target