Remove wall sight occlusion for lighting changes

This commit is contained in:
2021-03-17 20:05:53 +01:00
parent b68e39ba2f
commit ea7b6f857e
4 changed files with 24 additions and 4 deletions
+2 -2
View File
@@ -11,8 +11,8 @@ void main()
float d = sqrt(boxOut.x) + sqrt(boxOut.y) - 1;
// float e = sqrt(f(x,wStart)) + sqrt(f(y,wEnd)) - 1.0;
float e = sqrt(boxIn.x) + sqrt(boxIn.y) - 1.0;
// if ( d < 0 || e > 0) { discard; }
if ( d < 0 || e > 0) { discard; }
fColor = vColor;
// if ( d < 0 || e > 0) { fColor = vec4(0,0,1,1); }
if ( d < 0 || e > 0) { fColor = vec4(0,0,1,1); }
// if ( d < 0 || e > 0) { fColor = vec4(0,0,1,1); }
}