X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=shader_glsl.h;h=b02bd3c0a59cfea2031e7b2dc8acdb162d7870c8;hb=94a5be97432b0a538c0200cd0c837253b65633bf;hp=6021148b813f9754349739f09d1997f02a68f339;hpb=9c19f5424cd24c82205885ed3d1c75f92f92b2d1;p=xonotic%2Fdarkplaces.git diff --git a/shader_glsl.h b/shader_glsl.h index 6021148b..b02bd3c0 100644 --- a/shader_glsl.h +++ b/shader_glsl.h @@ -110,10 +110,10 @@ " position *= 0.125;\n" " //~tweaked for Quake\n" " float distanceSquared = (position.x * position.x + position.z * position.z);\n" -" position.y += 5*sin(distanceSquared*sin(float(worldTime)/143.0)/1000.0);\n" +" position.y += 5.0*sin(distanceSquared*sin(worldTime/143.0)/1000.0);\n" " float y = position.y;\n" " float x = position.x;\n" -" float om = sin(distanceSquared*sin(float(worldTime)/256.0)/5000.0) * sin(float(worldTime)/200.0);\n" +" float om = sin(distanceSquared*sin(worldTime/256.0)/5000.0) * sin(worldTime/200.0);\n" " position.y = x*sin(om)+y*cos(om);\n" " position.x = x*cos(om)-y*sin(om);\n" " return position;\n"