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
This commit is contained in:
parent
02fd259fab
commit
7b9bfe0ae9
1 changed files with 2 additions and 2 deletions
|
@ -123,7 +123,7 @@ void GL_Warp_Init(void)
|
||||||
|
|
||||||
" vec3 dir = pos - eyepos;\n"
|
" vec3 dir = pos - eyepos;\n"
|
||||||
|
|
||||||
" dir.z *= 3;\n"
|
" dir.z *= 3.0;\n"
|
||||||
" dir.xy /= 0.5*length(dir);\n"
|
" dir.xy /= 0.5*length(dir);\n"
|
||||||
|
|
||||||
" tccoord = (dir.xy + time*0.03125);\n"
|
" tccoord = (dir.xy + time*0.03125);\n"
|
||||||
|
@ -132,7 +132,7 @@ void GL_Warp_Init(void)
|
||||||
" tccoord = (dir.xy + time*0.0625);\n"
|
" tccoord = (dir.xy + time*0.0625);\n"
|
||||||
" vec4 clouds = texture2D(transt, tccoord);\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"
|
// " gl_FragColor.rgb = solid+clouds.rgb;\n"
|
||||||
"}\n"
|
"}\n"
|
||||||
"#endif\n"
|
"#endif\n"
|
||||||
|
|
Loading…
Reference in a new issue