We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4be4363 commit 0f2d204Copy full SHA for 0f2d204
common/webapp/src/js/map/hires/HiresVertexShader.js
@@ -58,7 +58,7 @@ void main() {
58
vBlocklight = blocklight;
59
60
// apply directional lighting
61
- if (vNormal.x * vNormal.z == 0.0) {
+ if (vNormal.y != 0.0 || abs(abs(vNormal.x) - abs(vNormal.z)) != 0.0) {
62
float distFac = smoothstep(1000.0, 50.0, distance);
63
vAo *= 1.0 - abs(dot(vNormal.xz, lightDirection)) * 0.4 * distFac;
64
vAo *= 1.0 - max(0.0, -vNormal.y) * 0.6 * distFac;
0 commit comments