Bug 470698 - MapObject cannot modify highlight

This commit is contained in:
Massimo Valentini 2009-10-12 20:26:42 +02:00 committed by Michael Schumacher
parent 21c037fdd6
commit 05304f6d83

View file

@ -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 */
/* =================================================== */