mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-21 03:52:33 +00:00
Bug 470698 - MapObject cannot modify highlight
This commit is contained in:
parent
21c037fdd6
commit
05304f6d83
|
@ -77,7 +77,7 @@ phong_shade (GimpVector3 *pos,
|
|||
gimp_vector3_mul (&N, NL);
|
||||
gimp_vector3_sub (&NN, &N, &L);
|
||||
RV = gimp_vector3_inner_product (&NN, &V);
|
||||
RV = pow (RV, mapvals.material.highlight);
|
||||
RV = 0.0 < RV ? pow (RV, mapvals.material.highlight) : 0.0;
|
||||
|
||||
/* Compute diffuse and specular intensity contribution */
|
||||
/* =================================================== */
|
||||
|
|
Loading…
Reference in a new issue