VoxelEngine/texturefragment.glsl
2017-08-27 12:51:26 +02:00

13 lines
199 B
GLSL

#version 410
layout(location = 0)in vec2 UV;
layout(location = 0)out vec4 color;
uniform sampler2D Tex;
void main() {
//color = vec4(0,0,0,1);
color = vec4(vec3(texture(Tex,UV).x),1);
}