scop/src/shader.fs

12 lines
168 B
GLSL

#version 330
out vec4 FragColor;
flat in int vID;
flat in int maxID;
void main()
{
vec3 color = vec3(float(vID) / float(maxID));
FragColor = vec4(color, 1.0);
}