|
#version 330 core
|
|
|
|
out vec4 FragColor;
|
|
|
|
void main()
|
|
{
|
|
vec3 objectColor = vec3(1.0, 0.5, 0.2);
|
|
vec3 lightColor = vec3(1.0, 1.0, 1.0);
|
|
float ambientStrength = 0.1;
|
|
|
|
vec3 ambient = ambientStrength * lightColor;
|
|
vec3 result = ambient * objectColor;
|
|
|
|
FragColor = vec4(ambient, 1.0);
|
|
}
|