mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-10 22:51:57 +00:00
es shader fix
git-svn-id: https://svn.code.sf.net/p/fteqw/code/branches/wip@3807 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
950f914180
commit
f5410d86af
1 changed files with 2 additions and 2 deletions
|
@ -1027,7 +1027,7 @@ struct sbuiltin_s
|
|||
"#endif\n"
|
||||
|
||||
"#ifdef FRAGMENT_SHADER\n"
|
||||
"uniform sampler2D watertexture;\n"
|
||||
"uniform sampler2D s_t0;\n"
|
||||
"uniform mediump float e_time;\n"
|
||||
"uniform lowp float cvar_r_wateralpha;\n"
|
||||
|
||||
|
@ -1036,7 +1036,7 @@ struct sbuiltin_s
|
|||
" mediump vec2 ntc;\n"
|
||||
" ntc.s = tc.s + sin(tc.t+e_time)*0.125;\n"
|
||||
" ntc.t = tc.t + sin(tc.s+e_time)*0.125;\n"
|
||||
" lowp vec3 ts = vec3(texture2D(watertexture, ntc));\n"
|
||||
" lowp vec3 ts = vec3(texture2D(s_t0, ntc));\n"
|
||||
|
||||
" gl_FragColor = vec4(ts, cvar_r_wateralpha);\n"
|
||||
"}\n"
|
||||
|
|
Loading…
Reference in a new issue