9 lines
No EOL
246 B
GLSL
9 lines
No EOL
246 B
GLSL
#version 150 core
|
|
layout(location = 0) uniform sampler2D tex;
|
|
layout(location = 0) uniform vec4 colour;
|
|
in vec2 texture_coordinates;
|
|
out vec4 fragment;
|
|
void main()
|
|
{
|
|
fragment = colour * vec4(1.0, 1.0, 1.0, texture(tex, texture_coordinates).r);
|
|
} |