LearnOpenGL/shader.fs
Nigel 06b979dfaa Lighting: Basic color
Added a light source
removed texturing
removed drawing multiple instances
of the same cube
2022-02-13 13:19:54 +01:00

11 lines
160 B
GLSL

#version 460 core
out vec4 FragColor;
uniform vec3 objectColor;
uniform vec3 lightColor;
void main()
{
FragColor = vec4(lightColor * objectColor, 1.0);
}