#version 400 in float lightIntensity; layout(location = 0) out vec4 fragColor; const vec3 color = vec3(1.0, 1.0, 0.0); void main() { vec3 c = vec3(color * lightIntensity); fragColor = vec4(c, 1.0); }