mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-26 13:50:53 +00:00
------------------------------------------------------------------------
r4237 | acceptthis | 2013-03-06 17:41:09 +0000 (Wed, 06 Mar 2013) | 1 line ------------------------------------------------------------------------ git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4233 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
301f0a9071
commit
5141aeda5f
1 changed files with 3 additions and 3 deletions
|
@ -113,17 +113,17 @@ YOU SHOULD NOT EDIT THIS FILE BY HAND
|
|||
"}\n"
|
||||
|
||||
//reduce the normals in shallow water (near walls, reduces the pain of linear sampling)
|
||||
"if (depth < 100)\n"
|
||||
"if (depth < 100.0)\n"
|
||||
"n *= depth/100.0;\n"
|
||||
"#else\n"
|
||||
"depth = 1;\n"
|
||||
"depth = 1.0;\n"
|
||||
"#endif \n"
|
||||
|
||||
|
||||
//refraction image (and water fog, if possible)
|
||||
"refr = texture2D(s_t0, stc + n.st*STRENGTH*cvar_r_glsl_turbscale).rgb * TINT;\n"
|
||||
"#ifdef DEPTH\n"
|
||||
"refr = mix(refr, FOGTINT, min(depth/4096, 1));\n"
|
||||
"refr = mix(refr, FOGTINT, min(depth/4096.0, 1.0));\n"
|
||||
"#endif\n"
|
||||
|
||||
//reflection/diffuse
|
||||
|
|
Loading…
Reference in a new issue