This commit is contained in:
Quaternions 2024-02-08 16:43:09 -08:00
parent 03868552c2
commit 41d1904f08

View File

@ -106,6 +106,9 @@ pub struct Mesh{
pub unique_color:Vec<Color4>, pub unique_color:Vec<Color4>,
pub unique_vertices:Vec<IndexedVertex>, pub unique_vertices:Vec<IndexedVertex>,
//polygon groups are constant texture AND convexity slices //polygon groups are constant texture AND convexity slices
//note that this may need to be changed to be a list of individual faces
//for submeshes to work since face ids need to be consistent across submeshes
//so face == polygon_groups[face_id]
pub polygon_groups:Vec<PolygonGroup>, pub polygon_groups:Vec<PolygonGroup>,
//graphics indexed (by texture) //graphics indexed (by texture)
pub graphics_groups:Vec<IndexedGraphicsGroup>, pub graphics_groups:Vec<IndexedGraphicsGroup>,