diff --git a/examples/shaders/shaders_fog_rendering.c b/examples/shaders/shaders_fog_rendering.c index 5feabba9e..a1044312d 100644 --- a/examples/shaders/shaders_fog_rendering.c +++ b/examples/shaders/shaders_fog_rendering.c @@ -72,8 +72,9 @@ int main(void) shader.locs[SHADER_LOC_VECTOR_VIEW] = GetShaderLocation(shader, "viewPos"); // Ambient light level + Vector4 ambient = (Vector4){ 0.2f, 0.2f, 0.2f, 1.0f }; int ambientLoc = GetShaderLocation(shader, "ambient"); - SetShaderValue(shader, ambientLoc, (float[4]){ 0.2f, 0.2f, 0.2f, 1.0f }, SHADER_UNIFORM_VEC4); + SetShaderValue(shader, ambientLoc, &ambient, SHADER_UNIFORM_VEC4); Vector4 fogColor = ColorNormalize(GRAY); int fogColorLoc = GetShaderLocation(shader, "fogColor");