fix fog calculation for tours

This commit is contained in:
Brian Beck 2026-04-01 23:14:08 -07:00
parent 2d054a7884
commit 14e25beaf8
30 changed files with 34 additions and 34 deletions

View file

@ -414,7 +414,7 @@ export function CameraTourConsumer() {
const orbitR = animation ? getOrbitRadius(animation) : 0;
const targetScale =
animation && orbitR >= FOG_REDUCE_THRESHOLD
? orbitR / FOG_REDUCE_DIVISOR
? Math.max(1, orbitR / FOG_REDUCE_DIVISOR)
: 1;
const currentScale = globalFogUniforms.fogDistanceScale.value;
if (currentScale !== targetScale) {