pub struct HeightfieldField {
pub half_width: f32,
pub half_depth: f32,
pub subdivisions: u32,
pub elevation_min: f32,
pub elevation_max: f32,
}Expand description
The field a heightmap image displaces: grid extents, resolution, and the elevation range the red channel maps into.
Fields§
§half_width: f32Half the terrain extent along X, in world units.
half_depth: f32Half the terrain extent along Z, in world units.
subdivisions: u32Grid resolution per axis, clamped to 4..=255.
elevation_min: f32World Y a red-channel value of 0 maps to.
elevation_max: f32World Y a red-channel value of 255 maps to.
Auto Trait Implementations§
impl Freeze for HeightfieldField
impl RefUnwindSafe for HeightfieldField
impl Send for HeightfieldField
impl Sync for HeightfieldField
impl Unpin for HeightfieldField
impl UnsafeUnpin for HeightfieldField
impl UnwindSafe for HeightfieldField
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