diff --git a/src/render/software/LightingManager.cpp b/src/render/software/LightingManager.cpp index 32de0d9..b8e298f 100644 --- a/src/render/software/LightingManager.cpp +++ b/src/render/software/LightingManager.cpp @@ -121,7 +121,8 @@ Color LightingManager::applyFinalComponent(const LightComponent &component, cons } /* specular reflection */ - if (sign > 0.0 && material.shininess > 0.0 && material.reflection > 0.0 && component.reflection > 0.0) { + if (specularity && sign > 0.0 && material.shininess > 0.0 && material.reflection > 0.0 && + component.reflection > 0.0) { Vector3 view = location.sub(eye).normalize(); Vector3 reflect = direction_inv.sub(normal.scale(2.0 * direction_inv.dotProduct(normal))); double specular = reflect.dotProduct(view);