mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-12-05 07:43:49 +01:00
fix: auto clear
This commit is contained in:
1 parent
ece0791a08
commit
633090f967
2 files changed
+11
No files matched your search
@@ -0,0 +1,9 @@
|
||||
import { useFrame } from '@react-three/fiber';
|
||||
|
||||
export function AutoClear() {
|
||||
useFrame(({ gl }) => {
|
||||
gl.clear();
|
||||
}, 0);
|
||||
|
||||
return null;
|
||||
}
|
||||
Reference in new issue
Block a user