Struct wgpu_tilemap::TilemapNoise
source · pub struct TilemapNoise {
pub magnitude: f32,
pub resolution: u8,
}
Expand description
Apply noise to the tilemap at a multiple of the tile size (e.g. for sand effects). TilemapNoise::default() applies no noise.
Fields§
§magnitude: f32
How much noise to apply.
resolution: u8
Number of noise cells per tile.
Trait Implementations§
source§impl Clone for TilemapNoise
impl Clone for TilemapNoise
source§fn clone(&self) -> TilemapNoise
fn clone(&self) -> TilemapNoise
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for TilemapNoise
impl Debug for TilemapNoise
source§impl Default for TilemapNoise
impl Default for TilemapNoise
source§fn default() -> TilemapNoise
fn default() -> TilemapNoise
Returns the “default value” for a type. Read more
impl Copy for TilemapNoise
Auto Trait Implementations§
impl RefUnwindSafe for TilemapNoise
impl Send for TilemapNoise
impl Sync for TilemapNoise
impl Unpin for TilemapNoise
impl UnwindSafe for TilemapNoise
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