VoxelEngine/texturefragment.glsl

14 lines
199 B
Text
Raw Normal View History

2017-08-27 12:51:26 +02:00
#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);
}