2023-07-24 23:54:37 +02:00
|
|
|
#version 330 core
|
|
|
|
|
|
|
|
out vec4 FragColor;
|
|
|
|
|
|
|
|
void main()
|
|
|
|
{
|
2023-08-03 08:43:34 +02:00
|
|
|
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);
|
2023-07-24 23:54:37 +02:00
|
|
|
}
|