Commit d67177d7 authored by Massimo Valentini's avatar Massimo Valentini Committed by Michael Schumacher

Bug 470698 - MapObject cannot modify highlight

parent 5270f707
......@@ -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 */
/* =================================================== */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment