feat: some shit

This commit is contained in:
2024-04-03 18:07:54 +02:00
parent a32e5a4b3b
commit 1b86c44244
19 changed files with 62 additions and 63 deletions

View File

@@ -50,6 +50,7 @@ export function createLeaves({ canvas, num = 20, alpha = false, minZ = -1, maxZ
const model = await GLTFLoader.load(gl, "/models/leaf.glb");
// @ts-ignore
const data = model.nodes[0].children[0].geometry.attributes;
let offset = new Float32Array(num * 3);