mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-03-09 21:31:51 +09:00
18 lines
384 B
GLSL
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;
|
|
} |