ref: 50fc39b242e889b7bec9971acb1f8438e29095f5
parent: 91a8470be56c6cf88bb699e79ba84c86a6f8412d
author: David <gek@katherine>
date: Mon Feb 22 05:51:09 EST 2021
fix fix fix, confused?
--- a/README.md
+++ b/README.md
@@ -58,8 +58,8 @@
Blending:

-
-
+Specular:
+
TinyGL 0.8 (c) 1997-2021 Fabrice Bellard, C-Chads, Gek (see License, it's free software)
--- a/src/light.c
+++ b/src/light.c
@@ -339,8 +339,8 @@
//BLINN-PHONG SHADING: We're doing lighting calculations in Eye coordinates, this is ViewDir + LightDir
s.X = d.X; //+0.0
s.Y = d.Y; //+0.0
- //s.Z = d.Z - 1.0;
- s.Z = d.Z + 1.0; //Verified that this is... "supposed" to be the right thing...
+ s.Z = d.Z - 1.0;
+ //s.Z = d.Z + 1.0; //Verified that this is... "supposed" to be the right thing...
//s.Z = d.Z;
}
//dot_spec is dot(surfaceNormal, H)