1
0
Fork 0
mirror of https://git.rip/DMCA_FUCKER/re3.git synced 2024-11-01 01:25:55 +00:00
re3/src/extras/shaders/simple.frag

18 lines
272 B
GLSL
Raw Normal View History

2020-08-18 08:58:15 +00:00
uniform sampler2D tex0;
FSIN vec4 v_color;
FSIN vec2 v_tex0;
FSIN float v_fog;
2020-08-18 08:58:15 +00:00
void
main(void)
{
vec4 color;
2020-08-18 08:58:15 +00:00
color = v_color*texture(tex0, vec2(v_tex0.x, 1.0-v_tex0.y));
color.rgb = mix(u_fogColor.rgb, color.rgb, v_fog);
DoAlphaTest(color.a);
FRAGCOLOR(color);
2020-08-18 08:58:15 +00:00
}