materials: small correction to specular computation.

This commit is contained in:
Bill Thiede 2021-07-17 10:09:46 -07:00
parent bad54bb433
commit 6863b4ecd6

View File

@ -119,7 +119,7 @@ pub fn lighting(
// from the eye.
let reflectv = reflect(-lightv, normalv);
let reflect_dot_eye = dot(reflectv, eyev);
let specular = if reflect_dot_eye < 0. {
let specular = if reflect_dot_eye <= 0. {
BLACK
} else {
// Compute the specular contribution.