1
0
Fork 0
forked from fte/fteqw

sky should accept fog somehow. this is the glass ceiling method. every method sucks.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4941 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2015-07-12 00:35:11 +00:00
parent 2a2a53af2e
commit 9b058ce95b

View file

@ -1,3 +1,6 @@
!!permu FOG
#include "sys/fog.h"
//regular sky shader for scrolling q1 skies
//the sky surfaces are thrown through this as-is.
@ -25,6 +28,6 @@ void main ()
vec3 solid = vec3(texture2D(s_t0, tccoord));
tccoord = (dir.xy + e_time*0.0625);
vec4 clouds = texture2D(s_t1, tccoord);
gl_FragColor.rgb = (solid.rgb*(1.0-clouds.a)) + (clouds.a*clouds.rgb);
gl_FragColor.rgb = fog3((solid.rgb*(1.0-clouds.a)) + (clouds.a*clouds.rgb));
}
#endif