diff options
author | metamuffin <metamuffin@disroot.org> | 2025-01-10 20:49:28 +0100 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2025-01-10 20:49:28 +0100 |
commit | cb46b760ae8d4aeaa0e92a9c313927ffdef27873 (patch) | |
tree | 6558cb19352b13ee3006fc1574ca82271e5a2398 /world/src/physics.rs | |
parent | 3ac853862b5965c1ebfb10b12fb35cf5c671232f (diff) | |
download | weareserver-cb46b760ae8d4aeaa0e92a9c313927ffdef27873.tar weareserver-cb46b760ae8d4aeaa0e92a9c313927ffdef27873.tar.bz2 weareserver-cb46b760ae8d4aeaa0e92a9c313927ffdef27873.tar.zst |
fix interleaved vertex arrays
Diffstat (limited to 'world/src/physics.rs')
-rw-r--r-- | world/src/physics.rs | 19 |
1 files changed, 17 insertions, 2 deletions
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 <https://www.gnu.org/licenses/>. +*/ +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, |