feat: reenable mixer

This commit is contained in:
TrèsAbhi committed 2025-09-13 23:42:26 -05:00
1 parent 96a8f225fc
commit f5aa2ff9de
12 files changed
+72 -37

No files matched your search

@@ -0,0 +1,14 @@
import { useProgress } from "@react-three/drei";
import { useRef } from "react";
export function useStableProgress() {
const { loaded, total } = useProgress();
const progress = useRef(0);
progress.current = Math.max(
progress.current,
total === 0 ? 0 : (loaded / total) * 100
);
return progress.current;
}