Commit before reorganising level generation

This commit is contained in:
2021-11-16 14:48:37 +00:00
parent f530952612
commit cb8cbe03a4
8 changed files with 37 additions and 90 deletions
+3 -1
View File
@@ -36,7 +36,9 @@ void main()
// first test if the edge is part of the silhouette
// that is, if the normals of the faces connected by the edge point in
// "different directions" wrt the light direction
if ( dot(n0 , lightDir) * dot(n1 , lightDir) < 0 )
if ( dot(n0 , lightDir) * dot(n1 , lightDir) <= 0 )
// using <= rather than < seems to get rid of overlapping shadow
// artefacts
{
vec4 p2 = shiftNear(p0);
vec4 p3 = shiftNear(p1);