#[repr(transparent)]pub struct VoxColor(pub u32);Expand description
A voxel colour in voxlap’s packing: RGB in the low 24 bits, the
baked brightness/AO byte on top — 0x80 is neutral (“unlit”),
and lighting bakes rewrite it per voxel. NOT alpha: translucency
is a material property (see the material palette), never a colour
channel.
Tuple Fields§
§0: u32Implementations§
Trait Implementations§
impl Copy for VoxColor
impl Eq for VoxColor
impl StructuralPartialEq for VoxColor
Auto Trait Implementations§
impl Freeze for VoxColor
impl RefUnwindSafe for VoxColor
impl Send for VoxColor
impl Sync for VoxColor
impl Unpin for VoxColor
impl UnsafeUnpin for VoxColor
impl UnwindSafe for VoxColor
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