mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 10:47:04 +02:00
fix: invalidate frams on reveal
This commit is contained in:
1 parent
da704e6181
commit
8b726c12d9
1 file changed
+2
-1
+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;
|
||||
|
||||
Reference in new issue
Block a user