feat: baked ao

This commit is contained in:
TrèsAbhi committed 2025-09-06 00:48:39 -05:00
1 parent 335cd4d699
commit 66cf1fd223
11 files changed
+75 -93

No files matched your search

+2 -2
View File
@@ -1,3 +1,4 @@
import { asset } from "@blitzkit/core";
import { type ObjectMap, useLoader } from "@react-three/fiber";
import { Mesh, MeshStandardMaterial } from "three";
import { type GLTF, GLTFLoader } from "three-stdlib";
@@ -11,8 +12,7 @@ const cache: Record<
> = {};
export function useModel(id: number) {
// const gltf = useLoader(GLTFLoader, asset(`3d/tanks/models/${id}.glb`));
const gltf = useLoader(GLTFLoader, `/test.glb`);
const gltf = useLoader(GLTFLoader, asset(`3d/tanks/models/${id}.glb`));
if (!cache[id]) {
cache[id] = {