fix: auto clear

This commit is contained in:
TrèsAbhi committed 2024-08-25 19:23:13 -05:00
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;
}