pub struct CoverMap {
pub texels: [u32; 2],
pub metres_per_texel: f32,
pub origin: [f32; 2],
pub cover: Vec<[u8; 2]>,
}Expand description
The density and blade-row map — decision 2’s density map and type map, as two channels of one texel.
Fields§
§texels: [u32; 2]Texels along +X and along +Z.
metres_per_texel: f32Metres of world between neighbouring texels.
origin: [f32; 2]The world XZ that texel (0, 0) stands at.
cover: Vec<[u8; 2]>[density, row] per texel, row-major. A density of zero is bare ground
and 255 is every cell; the row indexes GrassField::blades and is
clamped to it.
Implementations§
Trait Implementations§
impl StructuralPartialEq for CoverMap
Auto Trait Implementations§
impl Forget for CoverMap
impl Freeze for CoverMap
impl Move for CoverMap
impl RefUnwindSafe for CoverMap
impl Send for CoverMap
impl Sync for CoverMap
impl Unpin for CoverMap
impl UnsafeUnpin for CoverMap
impl UnwindSafe for CoverMap
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