General cleanup

This commit is contained in:
2025-11-13 21:13:13 +00:00
parent 227f09eeda
commit ec1216e7eb
12 changed files with 186 additions and 184 deletions
+2 -1
View File
@@ -58,7 +58,8 @@ void main()
// that is, if the normals of the faces connected to the edge are in
// "different directions" wrt the light direction
// (first test the "drawbit")
if (p0.w==1 && dot(n0, lightDir) * dot(n1, lightDir) <= 0 &&
//if (p0.w==1 && dot(n0, lightDir) * dot(n1, lightDir) <= 0 &&
if ( dot(n0, lightDir) * dot(n1, lightDir) <= 0 &&
(dot(lightDir, lightDir) < ru2 || dot(lightDir2, lightDir2) < ru2))
// using <= rather than < seems to get rid of overlapping shadow
// artefacts