pub struct MagCaveGenerator;Expand description
Magenta-cave preset matching Ken’s cavemag3m.jpg.
Magenta base across the cave surfaces; voxels whose distance to the nearest air seed roughly equals the distance to the nearest solid seed (i.e. right on the Worley boundary) get a yellow-green edge highlight blended in. Per-voxel intensity wobbles ±25% via a dedicated colour Perlin sampler.
Implementations§
Source§impl MagCaveGenerator
impl MagCaveGenerator
Sourcepub fn default_params() -> CaveParams
pub fn default_params() -> CaveParams
Default cave parameters tuned to match cavemag3m.jpg.
Higher anisotropy (1.5) + lower air ratio (0.4) + extra
Perlin octaves give the magenta variant more sinuous,
densely-walled corridors than the blue variant.
Trait Implementations§
Source§impl Clone for MagCaveGenerator
impl Clone for MagCaveGenerator
Source§fn clone(&self) -> MagCaveGenerator
fn clone(&self) -> MagCaveGenerator
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 MagCaveGenerator
impl Debug for MagCaveGenerator
Source§impl Default for MagCaveGenerator
impl Default for MagCaveGenerator
Source§fn default() -> MagCaveGenerator
fn default() -> MagCaveGenerator
Returns the “default value” for a type. Read more
Source§impl Generator for MagCaveGenerator
impl Generator for MagCaveGenerator
Source§type Params = CaveParams
type Params = CaveParams
Parameter type. Most generators alias this to
CaveParams.impl Copy for MagCaveGenerator
Auto Trait Implementations§
impl Freeze for MagCaveGenerator
impl RefUnwindSafe for MagCaveGenerator
impl Send for MagCaveGenerator
impl Sync for MagCaveGenerator
impl Unpin for MagCaveGenerator
impl UnsafeUnpin for MagCaveGenerator
impl UnwindSafe for MagCaveGenerator
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