mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-12-01 05:43:22 +01:00
smart shadow updates
This commit is contained in:
11 files changed
+110
-15
No files matched your search
@@ -1,4 +1,5 @@
|
||||
import { invalidate, useFrame } from "@react-three/fiber";
|
||||
import { sceneChangeEvent } from "../core/three/sceneChange";
|
||||
import type { Skin } from "./useSkin";
|
||||
|
||||
export function useSkinAnimation(skins: Skin[]) {
|
||||
@@ -8,6 +9,7 @@ export function useSkinAnimation(skins: Skin[]) {
|
||||
|
||||
mixer.update(delta);
|
||||
invalidate();
|
||||
sceneChangeEvent.dispatch();
|
||||
}
|
||||
});
|
||||
}
|
||||
Reference in new issue
Block a user