Files
Terrarum/src/shaders/shadowshallow.frag
2024-12-05 21:47:02 +09:00

18 lines
384 B
GLSL

#ifdef GL_ES
precision mediump float;
#endif
in vec4 v_color;
in vec4 v_generic;
in vec2 v_texCoords;
uniform sampler2D u_texture;
uniform sampler2D u_wall;
out vec4 fragColor;
void main() {
vec4 backcol = texture(u_wall, v_texCoords);
vec4 incol = texture(u_texture, v_texCoords);
vec4 outcol = vec4(incol.rgb, backcol.a * incol.a);
fragColor = v_color * outcol;
}