From c85a84a52e2a12249e9d28ec3f99f3a0c1891054 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Fri, 29 Sep 2023 01:58:31 -0700 Subject: [PATCH] enable model color --- src/load_roblox.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/load_roblox.rs b/src/load_roblox.rs index 8d63e2d..7ade02f 100644 --- a/src/load_roblox.rs +++ b/src/load_roblox.rs @@ -250,7 +250,7 @@ pub fn generate_indexed_models_roblox(dom:rbx_dom_weak::WeakDom) -> Result<(Inde }; indexed_models[model_id].instances.push(ModelInstance { model_transform, - color: glam::Vec4::ONE,//glam::vec4(color3.r as f32/255f32, color3.g as f32/255f32, color3.b as f32/255f32, 1.0-*transparency), + color:glam::vec4(color3.r as f32/255f32, color3.g as f32/255f32, color3.b as f32/255f32, 1.0-*transparency), }); } }