mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-23 20:43:15 +00:00
12 lines
271 B
GLSL
12 lines
271 B
GLSL
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);
|
|
}
|