fix: invalidate frams on reveal

This commit is contained in:
tresabhi committed 2025-04-16 23:20:44 -05:00
1 parent da704e6181
commit 8b726c12d9
1 file changed
+2 -1
@@ -1,4 +1,4 @@
import { useThree } from '@react-three/fiber';
import { invalidate, useThree } from '@react-three/fiber';
import { useEffect } from 'react';
import type { Fog } from 'three';
import { fogAnimationTime, fogFar0, fogFar1, forNear0, forNear1 } from '..';
@@ -25,6 +25,7 @@ export function InitialFogReveal() {
fog.near = near;
fog.far = far;
invalidate();
if (x >= 1) {
fog.near = forNear0;