mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-03-08 12:51:51 +09:00
12 lines
237 B
GLSL
12 lines
237 B
GLSL
#version 150
|
|
|
|
in vec4 v_color;
|
|
in vec2 v_texCoords;
|
|
uniform sampler2D u_texture;
|
|
|
|
vec2 boolean = vec2(0.0, 1.0);
|
|
out vec4 fragColor;
|
|
|
|
void main(void) {
|
|
fragColor = texture(u_texture, v_texCoords).aaaa * boolean.yyyx + boolean.xxxy;
|
|
} |