Struct ModelLoaderQuad
pub struct ModelLoaderQuad {
pub positions: [[f32; 3]; 4],
pub uvs: [[f32; 2]; 4],
pub texture: String,
pub cull: Option<Direction>,
pub tint_index: i32,
pub shade: bool,
}Expand description
One quad a model loader adds to a model whose loader it registered
(register_model_loaders), baked with the model’s elements: turned with the
blockstate variant, culled and shaded as element faces are.
Fields§
§positions: [[f32; 3]; 4]Corners in block units (0 to 1 across the block), counter-clockwise seen from the front, as an obj model’s are.
uvs: [[f32; 2]; 4]Each corner’s texture coordinates, 0 to 1 across the sprite.
texture: StringThe texture: a key of the model’s textures (side, or #side).
cull: Option<Direction>The face whose solid neighbour hides the quad; None never culls.
tint_index: i32The tint index a block tint source colours it by; -1 is none.
shade: boolWhether it takes directional shading.
Trait Implementations§
§impl Clone for ModelLoaderQuad
impl Clone for ModelLoaderQuad
§fn clone(&self) -> ModelLoaderQuad
fn clone(&self) -> ModelLoaderQuad
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for ModelLoaderQuad
impl Debug for ModelLoaderQuad
§impl PartialEq for ModelLoaderQuad
impl PartialEq for ModelLoaderQuad
impl StructuralPartialEq for ModelLoaderQuad
Auto Trait Implementations§
impl Freeze for ModelLoaderQuad
impl RefUnwindSafe for ModelLoaderQuad
impl Send for ModelLoaderQuad
impl Sync for ModelLoaderQuad
impl Unpin for ModelLoaderQuad
impl UnsafeUnpin for ModelLoaderQuad
impl UnwindSafe for ModelLoaderQuad
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