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:
parent
2a2a53af2e
commit
9b058ce95b
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue