mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-11-30 05:14:06 +01:00
10 lines
146 B
TypeScript
10 lines
146 B
TypeScript
import { useFrame } from '@react-three/fiber';
|
|
|
|
export function AutoClear() {
|
|
useFrame(({ gl }) => {
|
|
gl.clear();
|
|
}, 0);
|
|
|
|
return null;
|
|
}
|