charcoal/shaders/TexturedFS.glsl

13 lines
184 B
Plaintext
Raw Normal View History

#version 430
in vec2 fragment_uv;
out vec4 frag_color;
2018-09-16 00:43:29 +00:00
layout(location = 4) uniform sampler2D tex;
void main()
{
vec4 sampled = texture(tex, fragment_uv);
frag_color = sampled;
}