vertexlit_specular: fix one assignment, which was causing bugs on some vendors

This commit is contained in:
Marco Cawthorne 2022-04-08 13:27:58 -07:00
parent 2c79071514
commit 69b5524771
Signed by: eukara
GPG key ID: C196CD8BA993248A

View file

@ -124,7 +124,7 @@ varying mat3 invsurface;
discard;
}
light += (e_light_mul * lambert(norm, e_light_dir)) * 2.0f; /* directional light */
light = (e_light_mul * lambert(norm, e_light_dir)) * 2.0f; /* directional light */
light += (e_light_ambient * lambert(norm, reflect(norm, e_light_dir))) * 0.5f; /* reverse ambient */
light *= 2.0f;