* make positions of both sky and horizon dependent on the most remote waterwave by adjusting Palewolf's offset values
authorsheepluva
Fri, 02 Apr 2010 10:50:10 +0000
changeset 3249 74a506c9d71b
parent 3248 8d4c61f6f30c
child 3250 d5cd1a617123
* make positions of both sky and horizon dependent on the most remote waterwave by adjusting Palewolf's offset values
hedgewars/uWorld.pas
--- a/hedgewars/uWorld.pas	Fri Apr 02 08:46:57 2010 +0000
+++ b/hedgewars/uWorld.pas	Fri Apr 02 10:50:10 2010 +0000
@@ -453,8 +453,9 @@
 
 offsetY:= 10 * min(0, -145 - (WorldDy - trunc(cScreenHeight/cScaleFactor) - (cScreenHeight div 2) + cWaterLine));
 
-SkyOffset:= offsetY div 35;
-HorizontOffset:= offsetY div 55;
+//SkyOffset:= offsetY div 35 + cWaveHeight;
+HorizontOffset:= offsetY div 35 + cWaveHeight;
+SkyOffset:= HorizontOffset;
 
 // Sky
 glClear(GL_COLOR_BUFFER_BIT);