From 46f2a47ce4aa1bc0fcb697e88a4d5d216ec3ab1d Mon Sep 17 00:00:00 2001 From: nik012003 Date: Thu, 23 Feb 2023 13:49:29 +0100 Subject: [PATCH] Added texture to hexagons --- src/protostar.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/protostar.rs b/src/protostar.rs index 8c333ca..1958293 100644 --- a/src/protostar.rs +++ b/src/protostar.rs @@ -36,7 +36,7 @@ fn model_from_icon(parent: &Spatial, icon: &Icon) -> Result { MaterialParameter::Color([0.0,1.0,1.0,1.0]), )?; model.set_material_parameter( - 2, + 0, "diffuse", MaterialParameter::Texture(ResourceID::Direct(icon.path.clone())), )?;