From a618f305e11d91f4c9b9bd011373a2d6b8aae495 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Thu, 28 Sep 2023 20:01:08 -0700 Subject: [PATCH] idea for roblox primitives optimization --- src/primitives.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/primitives.rs b/src/primitives.rs index d09f7dc7..790117d5 100644 --- a/src/primitives.rs +++ b/src/primitives.rs @@ -95,6 +95,7 @@ impl FaceDescription{ } } //TODO: it's probably better to use a shared vertex buffer between all primitives and use indexed rendering instead of generating a unique vertex buffer for each primitive. +//implementation: put all roblox primitives into one model.groups pub fn generate_partial_unit_cube(face_descriptions:[Option;6]) -> crate::model::IndexedModel{ let mut generated_pos=Vec::<[f32;3]>::new(); let mut generated_tex=Vec::new();