Techneck/fragment_shader.glsl

13 lines
214 B
GLSL

#version 420 core
in vec2 uv_coords;
out vec4 color;
uniform sampler2D block_atlas;
void main() {
color = texture(block_atlas, uv_coords); // vec4(uv_coords, 0.0f, 1.0); // vec4(1.0, 0.0, 0.0, 1.0);
}