pub struct MeshPart {
pub lod_distance: f32,
pub name: String,
pub ao_texture: Option<String>,
pub ranges: Vec<DrawRange>,
pub static_indices: Vec<u8>,
pub static_vertices: Vec<u8>,
pub skinned_indices: Vec<u8>,
pub skinned_vertices: Vec<u8>,
}Expand description
A part of a mesh, with its level of detail, its draw ranges and its buffers.
Fields§
§lod_distance: f32The distance up to which this level of detail is used.
name: StringThe part’s name.
ao_texture: Option<String>The ambient-occlusion texture.
ranges: Vec<DrawRange>The draw ranges.
static_indices: Vec<u8>Both streams can be present in one detail level (for example, the trader boat).
static_vertices: Vec<u8>The vertex buffer of the rigid geometry.
skinned_indices: Vec<u8>The index buffer of the skinned geometry.
skinned_vertices: Vec<u8>The vertex buffer of the skinned geometry.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MeshPart
impl RefUnwindSafe for MeshPart
impl Send for MeshPart
impl Sync for MeshPart
impl Unpin for MeshPart
impl UnsafeUnpin for MeshPart
impl UnwindSafe for MeshPart
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more