mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-03-08 04:41:51 +09:00
11 lines
291 B
GLSL
11 lines
291 B
GLSL
in vec4 v_color;
|
|
in vec2 v_texCoords;
|
|
uniform sampler2D u_texture;
|
|
|
|
out vec4 fragColor;
|
|
|
|
void main(void) {
|
|
vec4 color = texture(u_texture, vec2(v_texCoords.x, 1.0 - v_texCoords.y));
|
|
vec4 alphamul = vec4(1.0, 1.0, 1.0, 0.5 * (1.0 - v_texCoords.y));
|
|
fragColor = color * alphamul;
|
|
} |