Move ambient color to lightubo

This commit is contained in:
bloeys
2024-09-15 16:18:03 +04:00
parent 5dfdea9a7b
commit 9dccb23613
2 changed files with 12 additions and 18 deletions

View File

@ -52,6 +52,7 @@ layout (std140) uniform Lights {
DirLight dirLight;
PointLight pointLights[NUM_POINT_LIGHTS];
SpotLight spotLights[NUM_SPOT_LIGHTS];
vec3 ambientColor;
};
//
@ -197,10 +198,9 @@ layout (std140) uniform Lights {
DirLight dirLight;
PointLight pointLights[NUM_POINT_LIGHTS];
SpotLight spotLights[NUM_SPOT_LIGHTS];
vec3 ambientColor;
};
uniform vec3 ambientColor = vec3(0.2, 0.2, 0.2);
//
// Outputs
//