use render config from face description
This commit is contained in:
parent
4acef656e5
commit
99bcf6d661
@ -116,7 +116,7 @@ pub fn convert(
|
|||||||
}
|
}
|
||||||
(0..NORMAL_FACES).map(|polygon_group_id|{
|
(0..NORMAL_FACES).map(|polygon_group_id|{
|
||||||
model::IndexedGraphicsGroup{
|
model::IndexedGraphicsGroup{
|
||||||
render:RenderConfigId::new(0),
|
render:cube_face_description[polygon_group_id].as_ref().map_or(RenderConfigId::new(0),|face_description|face_description.render),
|
||||||
groups:vec![PolygonGroupId::new(polygon_group_id as u32)]
|
groups:vec![PolygonGroupId::new(polygon_group_id as u32)]
|
||||||
}
|
}
|
||||||
}).collect()
|
}).collect()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user