pub struct Models {
pub models: Vec<Model>,
pub materials: Vec<Material>,
pub samplers: Vec<Sampler>,
pub skinning: Option<Skinning>,
pub lod_data: Option<LodData>,
pub morph_controller_names: Vec<String>,
pub animation_morph_names: Vec<String>,
pub max_xyz: Vec3,
pub min_xyz: Vec3,
}Expand description
See Models.
Fields§
§models: Vec<Model>§materials: Vec<Material>§samplers: Vec<Sampler>§skinning: Option<Skinning>§lod_data: Option<LodData>§morph_controller_names: Vec<String>The name of the controller for each morph target like “mouth_shout”.
animation_morph_names: Vec<String>The the morph controller names used for animations.
max_xyz: Vec3The minimum XYZ coordinates of the bounding volume.
min_xyz: Vec3The maximum XYZ coordinates of the bounding volume.
Implementations§
Source§impl Models
impl Models
pub fn from_models( models: &Models, materials: &Materials, texture_indices: Option<&[u16]>, spch: &Spch, shader_database: Option<&ShaderDatabase>, ) -> Self
pub fn from_models_legacy( models: &Models, materials: &Materials, shaders: &Shaders, shader_database: Option<&ShaderDatabase>, texture_indices: &[u16], ) -> Self
Trait Implementations§
impl StructuralPartialEq for Models
Auto Trait Implementations§
impl Freeze for Models
impl RefUnwindSafe for Models
impl Send for Models
impl Sync for Models
impl Unpin for Models
impl UnwindSafe for Models
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more