Added texture to hexagons

This commit is contained in:
nik012003
2023-02-23 13:49:29 +01:00
committed by Nova
parent b9e3f1e9f3
commit a10ed471fb

View File

@@ -34,7 +34,7 @@ fn model_from_icon(parent: &Spatial, icon: &Icon) -> Result<Model> {
MaterialParameter::Color([0.0,1.0,1.0,1.0]),
)?;
model.set_material_parameter(
2,
0,
"diffuse",
MaterialParameter::Texture(ResourceID::Direct(icon.path.clone())),
)?;