#[repr(C)]pub struct TerrainGpu {Show 14 fields
pub frequency: f32,
pub height_octaves: f32,
pub height_amp: f32,
pub height_gain: f32,
pub height_lacunarity: f32,
pub ridge_tiles: f32,
pub ridge_octaves: f32,
pub ridge_gain: f32,
pub ridge_lacunarity: f32,
pub ridge_strength: f32,
pub water_height: f32,
pub height_scale: f32,
pub fd_eps: f32,
pub enabled: f32,
}Expand description
Terrain noise parameters as the shaders read them (14 floats = 56 bytes,
matching struct TerrainGpu in the realize/bake shaders — the CONTAINING
params structs pad back up to a 16-byte multiple). Octave counts ride as
floats and are cast in-shader.
Fields§
§frequency: f32§height_octaves: f32§height_amp: f32§height_gain: f32§height_lacunarity: f32§ridge_tiles: f32§ridge_octaves: f32§ridge_gain: f32§ridge_lacunarity: f32§ridge_strength: f32§water_height: f32§height_scale: f32§fd_eps: f32§enabled: f32Trait Implementations§
Source§impl Clone for TerrainGpu
impl Clone for TerrainGpu
Source§fn clone(&self) -> TerrainGpu
fn clone(&self) -> TerrainGpu
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TerrainGpu
impl Debug for TerrainGpu
Source§impl PartialEq for TerrainGpu
impl PartialEq for TerrainGpu
Source§fn eq(&self, other: &TerrainGpu) -> bool
fn eq(&self, other: &TerrainGpu) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for TerrainGpu
impl Pod for TerrainGpu
impl StructuralPartialEq for TerrainGpu
Auto Trait Implementations§
impl Freeze for TerrainGpu
impl RefUnwindSafe for TerrainGpu
impl Send for TerrainGpu
impl Sync for TerrainGpu
impl Unpin for TerrainGpu
impl UnsafeUnpin for TerrainGpu
impl UnwindSafe for TerrainGpu
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
§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
§type Bits = T
type Bits = T
Self must have the same layout as the specified Bits except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern.§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self.