mirror of
https://github.com/exogen/t2-mapper.git
synced 2026-07-11 14:34:51 +00:00
fix fog calculation for tours
This commit is contained in:
parent
2d054a7884
commit
14e25beaf8
30 changed files with 34 additions and 34 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue