From cb46b760ae8d4aeaa0e92a9c313927ffdef27873 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Fri, 10 Jan 2025 20:49:28 +0100 Subject: fix interleaved vertex arrays --- world/src/physics.rs | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) (limited to 'world/src/physics.rs') diff --git a/world/src/physics.rs b/world/src/physics.rs index 82bb28f..bc39a11 100644 --- a/world/src/physics.rs +++ b/world/src/physics.rs @@ -1,3 +1,20 @@ +/* + wearechat - generic multiplayer game with voip + Copyright (C) 2025 metamuffin + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU Affero General Public License as published by + the Free Software Foundation, version 3 of the License only. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. + + You should have received a copy of the GNU Affero General Public License + along with this program. If not, see . +*/ +use crate::mesh::node_transform_to_affine; use anyhow::{Result, anyhow}; use gltf::{Gltf, Node, buffer::Data, json::Value}; use log::info; @@ -7,8 +24,6 @@ use weareshared::{ vec3a, }; -use crate::mesh::node_transform_to_affine; - pub fn import_physics( gltf: &Gltf, node: &Node, -- cgit v1.2.3-70-g09d2