2018-09-15 21:40:49 +00:00
|
|
|
#version 430
|
2018-09-17 00:50:51 +00:00
|
|
|
in vec2 fragment_uv;
|
|
|
|
|
2018-09-15 21:40:49 +00:00
|
|
|
out vec4 frag_color;
|
2018-09-16 00:43:29 +00:00
|
|
|
|
|
|
|
layout(location = 4) uniform sampler2D tex;
|
|
|
|
|
2018-09-15 21:40:49 +00:00
|
|
|
void main()
|
|
|
|
{
|
2018-09-17 00:50:51 +00:00
|
|
|
vec3 base = vec3(0.1, 0.1, 0.1);
|
|
|
|
vec4 sampled = texture(tex, fragment_uv);
|
|
|
|
frag_color = vec4(base + sampled.xyz, 1.0);
|
2018-09-15 21:40:49 +00:00
|
|
|
}
|