1
0
Fork 0
forked from fte/fteqw

try to fix ripplemaps.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4257 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2013-03-17 12:11:47 +00:00
parent 169f7edcf2
commit e0f2b1113c

View file

@ -47,13 +47,12 @@ uniform sampler2D s_t1; //normalmap
uniform sampler2D s_t2; //diffuse/reflection
#ifdef DEPTH
uniform sampler2D s_t3; //refraction depth
#ifdef RIPPLEMAP
uniform sampler2D s_t4; //ripplemap
#endif
#define s_ripplemap s_t4
#else
#ifdef RIPPLEMAP
uniform sampler2D s_t3; //ripplemap
#define s_ripplemap s_t3
#endif
#ifdef RIPPLEMAP
uniform sampler2D s_ripplemap; //ripplemap
#endif
uniform float e_time;
@ -77,7 +76,7 @@ void main (void)
n -= 1.0 - 4.0/256.0;
#ifdef RIPPLEMAP
n += texture2D(s_t4, stc).rgb*3.0;
n += texture2D(s_ripplemap, stc).rgb*3.0;
#endif
//the fresnel term decides how transparent the water should be