pub struct MeshData {
pub name: String,
pub indices: Vec<u32>,
pub positions: Vec<[f32; 3]>,
pub normals: Option<Vec<[f32; 3]>>,
pub colors: Option<Vec<ColorRgba8>>,
}Expand description
User-friendly mesh buffer contents struct
Fields§
§name: StringDebug name, used to make warnings and errors more readable.
indices: Vec<u32>List of indices, this can be empty to have a non-indexed mesh
positions: Vec<[f32; 3]>Vertex positions
normals: Option<Vec<[f32; 3]>>Vertex normals (optional)
colors: Option<Vec<ColorRgba8>>Vertex colors (optional)
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for MeshData
impl<'de> Deserialize<'de> for MeshData
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more