From 7b9bfe0ae9100beea8fe6c37a883e9121b449cc2 Mon Sep 17 00:00:00 2001 From: Mark Olsen Date: Wed, 16 Sep 2009 19:33:50 +0000 Subject: [PATCH] Spike for president, less GLSL compile errors! Oh, and happy birthday yesterday, BTW ;) git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3374 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/gl/gl_warp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/gl/gl_warp.c b/engine/gl/gl_warp.c index b1ac350fc..a9f3d9ad1 100644 --- a/engine/gl/gl_warp.c +++ b/engine/gl/gl_warp.c @@ -123,7 +123,7 @@ void GL_Warp_Init(void) " vec3 dir = pos - eyepos;\n" - " dir.z *= 3;\n" + " dir.z *= 3.0;\n" " dir.xy /= 0.5*length(dir);\n" " tccoord = (dir.xy + time*0.03125);\n" @@ -132,7 +132,7 @@ void GL_Warp_Init(void) " tccoord = (dir.xy + time*0.0625);\n" " vec4 clouds = texture2D(transt, tccoord);\n" - " gl_FragColor.rgb = solid*(1-clouds.a) + clouds.rgb*clouds.a;\n" + " gl_FragColor.rgb = solid*(1.0-clouds.a) + clouds.rgb*clouds.a;\n" // " gl_FragColor.rgb = solid+clouds.rgb;\n" "}\n" "#endif\n"