pub struct PaletteSlot {
pub uv_top: [f32; 4],
pub uv_bottom: [f32; 4],
pub uv_side: [f32; 4],
}Expand description
One entry resolved from a VoxelChunk palette. None slots are
non-solid (air) and emit no geometry; their neighbours treat them as empty.
Public so the cook crate’s compile_voxel_chunk_payload (build-time mesher)
can build the palette this crate’s runtime build_chunk_mesh also consumes.
Fields§
§uv_top: [f32; 4]Atlas UV rect for the block’s top face.
uv_bottom: [f32; 4]Atlas UV rect for the block’s bottom face.
uv_side: [f32; 4]Atlas UV rect for the block’s four side faces.
Auto Trait Implementations§
impl Freeze for PaletteSlot
impl RefUnwindSafe for PaletteSlot
impl Send for PaletteSlot
impl Sync for PaletteSlot
impl Unpin for PaletteSlot
impl UnsafeUnpin for PaletteSlot
impl UnwindSafe for PaletteSlot
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