ref: ead025641075b0bffa3d918b94e05753403d6a7b
parent: e495ea83113e3d536d95a22666905ca3c45333da
author: David <gek@katherine>
date: Mon Feb 22 05:21:57 EST 2021
Lighting fix
--- a/src/light.c
+++ b/src/light.c
@@ -359,7 +359,7 @@
} else dot_spec = 0;
#else
//reference implementation.
- tmp=sqrt(s.X*s.X+s.Y*s.Y+s.Z*s.Z);
+ tmp= sqrt(s.X*s.X+s.Y*s.Y+s.Z*s.Z);
if (tmp > 1E-3) {
dot_spec=dot_spec / tmp;
} else dot_spec = 0;