mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-29 23:22:01 +00:00
1d1f2ad526
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6116 fc73d0e0-1445-4013-8a0c-d673dee63da5
30 lines
401 B
GLSL
30 lines
401 B
GLSL
!!ver 110
|
|
!!permu FOG
|
|
!!samps diffuse
|
|
|
|
#include "sys/defs.h"
|
|
#include "sys/fog.h"
|
|
|
|
varying vec2 tex_c;
|
|
|
|
#ifdef VERTEX_SHADER
|
|
void main ()
|
|
{
|
|
tex_c = v_texcoord;
|
|
gl_Position = ftetransform();
|
|
}
|
|
#endif
|
|
|
|
#ifdef FRAGMENT_SHADER
|
|
void main ()
|
|
{
|
|
vec4 diffuse_f = texture2D( s_diffuse, tex_c );
|
|
|
|
#ifdef MASKLT
|
|
if (diffuse_f.a < float(MASK))
|
|
discard;
|
|
#endif
|
|
|
|
gl_FragColor = fog4( diffuse_f );
|
|
}
|
|
#endif
|