qzdoom-gpl/wadsrc/static/shaders/glsl/burn.fp

13 lines
271 B
Text
Raw Normal View History

2014-05-12 20:24:26 +00:00
uniform sampler2D tex;
uniform sampler2D texture2;
void main()
{
vec4 frag = gl_Color;
vec4 t1 = texture2D(texture2, gl_TexCoord[0].xy);
vec4 t2 = texture2D(tex, vec2(gl_TexCoord[0].x, 1.0-gl_TexCoord[0].y));
gl_FragColor = frag * vec4(t1.r, t1.g, t1.b, t2.a);
}