Files
Terrarum/src/shaders/aonly.frag
2023-02-28 17:32:52 +09:00

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;
}