Skip to content

Commit 967ad3f

Browse files
committed
2 parents f6b6c7a + 0f2d204 commit 967ad3f

File tree

3 files changed

+130
-11
lines changed

3 files changed

+130
-11
lines changed

common/webapp/package-lock.json

Lines changed: 128 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

common/webapp/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@
2020
"eslint": "~8.22.0",
2121
"eslint-plugin-vue": "^9.3.0",
2222
"sass": "^1.57.0",
23-
"vite": "^6.2.6"
23+
"vite": "^6.3.4"
2424
}
2525
}

common/webapp/src/js/map/hires/HiresVertexShader.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ void main() {
5858
vBlocklight = blocklight;
5959
6060
// apply directional lighting
61-
if (vNormal.x * vNormal.z == 0.0) {
61+
if (vNormal.y != 0.0 || abs(abs(vNormal.x) - abs(vNormal.z)) != 0.0) {
6262
float distFac = smoothstep(1000.0, 50.0, distance);
6363
vAo *= 1.0 - abs(dot(vNormal.xz, lightDirection)) * 0.4 * distFac;
6464
vAo *= 1.0 - max(0.0, -vNormal.y) * 0.6 * distFac;

0 commit comments

Comments
 (0)