Skip to main content

steel_worldgen/generated/vanilla_density_functions/
overworld.rs

1use steel_registry :: RegistryExt ; use steel_registry :: blocks :: block_state_ext :: BlockStateExt ; use std :: simd :: f64x4 ; use std :: simd :: Select ; use std :: simd :: cmp :: SimdPartialOrd ; use std :: simd :: num :: SimdFloat ; use steel_worldgen :: density :: spline_eval ; use steel_worldgen :: density :: RarityValueMapper ; use steel_math :: { clamp , map_clamped } ; use steel_worldgen :: noise :: NormalNoise ; use steel_worldgen :: random :: { PositionalRandom , RandomSplitter } ; # [doc = r" All noise generators needed by this dimension's density functions."] # [doc = r""] # [doc = r" Created at runtime from a seed via the `create` method."] pub struct OverworldNoises { pub n_aquifer_barrier : NormalNoise , pub n_aquifer_fluid_level_floodedness : NormalNoise , pub n_aquifer_fluid_level_spread : NormalNoise , pub n_aquifer_lava : NormalNoise , pub n_cave_cheese : NormalNoise , pub n_cave_entrance : NormalNoise , pub n_cave_layer : NormalNoise , pub n_continentalness : NormalNoise , pub n_erosion : NormalNoise , pub n_jagged : NormalNoise , pub n_noodle : NormalNoise , pub n_noodle_ridge_a : NormalNoise , pub n_noodle_ridge_b : NormalNoise , pub n_noodle_thickness : NormalNoise , pub n_offset : NormalNoise , pub n_ore_gap : NormalNoise , pub n_ore_vein_a : NormalNoise , pub n_ore_vein_b : NormalNoise , pub n_ore_veininess : NormalNoise , pub n_pillar : NormalNoise , pub n_pillar_rareness : NormalNoise , pub n_pillar_thickness : NormalNoise , pub n_ridge : NormalNoise , pub n_spaghetti_2d : NormalNoise , pub n_spaghetti_2d_elevation : NormalNoise , pub n_spaghetti_2d_modulator : NormalNoise , pub n_spaghetti_2d_thickness : NormalNoise , pub n_spaghetti_3d_1 : NormalNoise , pub n_spaghetti_3d_2 : NormalNoise , pub n_spaghetti_3d_rarity : NormalNoise , pub n_spaghetti_3d_thickness : NormalNoise , pub n_spaghetti_roughness : NormalNoise , pub n_spaghetti_roughness_modulator : NormalNoise , pub n_temperature : NormalNoise , pub n_vegetation : NormalNoise , pub blended_noise : steel_worldgen :: noise :: BlendedNoise , } impl OverworldNoises { # [doc = r" Create all noise generators from a world seed, positional splitter, and noise parameters."] pub fn create (seed : u64 , splitter : & RandomSplitter , params : & rustc_hash :: FxHashMap < String , steel_worldgen :: density :: NoiseParameters > ,) -> Self { let _ = seed ; Self { n_aquifer_barrier : { let p = params . get ("minecraft:aquifer_barrier") . expect (concat ! ("missing noise params: " , "minecraft:aquifer_barrier")) ; NormalNoise :: create (splitter , "minecraft:aquifer_barrier" , p . first_octave , & p . amplitudes) } , n_aquifer_fluid_level_floodedness : { let p = params . get ("minecraft:aquifer_fluid_level_floodedness") . expect (concat ! ("missing noise params: " , "minecraft:aquifer_fluid_level_floodedness")) ; NormalNoise :: create (splitter , "minecraft:aquifer_fluid_level_floodedness" , p . first_octave , & p . amplitudes) } , n_aquifer_fluid_level_spread : { let p = params . get ("minecraft:aquifer_fluid_level_spread") . expect (concat ! ("missing noise params: " , "minecraft:aquifer_fluid_level_spread")) ; NormalNoise :: create (splitter , "minecraft:aquifer_fluid_level_spread" , p . first_octave , & p . amplitudes) } , n_aquifer_lava : { let p = params . get ("minecraft:aquifer_lava") . expect (concat ! ("missing noise params: " , "minecraft:aquifer_lava")) ; NormalNoise :: create (splitter , "minecraft:aquifer_lava" , p . first_octave , & p . amplitudes) } , n_cave_cheese : { let p = params . get ("minecraft:cave_cheese") . expect (concat ! ("missing noise params: " , "minecraft:cave_cheese")) ; NormalNoise :: create (splitter , "minecraft:cave_cheese" , p . first_octave , & p . amplitudes) } , n_cave_entrance : { let p = params . get ("minecraft:cave_entrance") . expect (concat ! ("missing noise params: " , "minecraft:cave_entrance")) ; NormalNoise :: create (splitter , "minecraft:cave_entrance" , p . first_octave , & p . amplitudes) } , n_cave_layer : { let p = params . get ("minecraft:cave_layer") . expect (concat ! ("missing noise params: " , "minecraft:cave_layer")) ; NormalNoise :: create (splitter , "minecraft:cave_layer" , p . first_octave , & p . amplitudes) } , n_continentalness : { let p = params . get ("minecraft:continentalness") . expect (concat ! ("missing noise params: " , "minecraft:continentalness")) ; NormalNoise :: create (splitter , "minecraft:continentalness" , p . first_octave , & p . amplitudes) } , n_erosion : { let p = params . get ("minecraft:erosion") . expect (concat ! ("missing noise params: " , "minecraft:erosion")) ; NormalNoise :: create (splitter , "minecraft:erosion" , p . first_octave , & p . amplitudes) } , n_jagged : { let p = params . get ("minecraft:jagged") . expect (concat ! ("missing noise params: " , "minecraft:jagged")) ; NormalNoise :: create (splitter , "minecraft:jagged" , p . first_octave , & p . amplitudes) } , n_noodle : { let p = params . get ("minecraft:noodle") . expect (concat ! ("missing noise params: " , "minecraft:noodle")) ; NormalNoise :: create (splitter , "minecraft:noodle" , p . first_octave , & p . amplitudes) } , n_noodle_ridge_a : { let p = params . get ("minecraft:noodle_ridge_a") . expect (concat ! ("missing noise params: " , "minecraft:noodle_ridge_a")) ; NormalNoise :: create (splitter , "minecraft:noodle_ridge_a" , p . first_octave , & p . amplitudes) } , n_noodle_ridge_b : { let p = params . get ("minecraft:noodle_ridge_b") . expect (concat ! ("missing noise params: " , "minecraft:noodle_ridge_b")) ; NormalNoise :: create (splitter , "minecraft:noodle_ridge_b" , p . first_octave , & p . amplitudes) } , n_noodle_thickness : { let p = params . get ("minecraft:noodle_thickness") . expect (concat ! ("missing noise params: " , "minecraft:noodle_thickness")) ; NormalNoise :: create (splitter , "minecraft:noodle_thickness" , p . first_octave , & p . amplitudes) } , n_offset : { let p = params . get ("minecraft:offset") . expect (concat ! ("missing noise params: " , "minecraft:offset")) ; NormalNoise :: create (splitter , "minecraft:offset" , p . first_octave , & p . amplitudes) } , n_ore_gap : { let p = params . get ("minecraft:ore_gap") . expect (concat ! ("missing noise params: " , "minecraft:ore_gap")) ; NormalNoise :: create (splitter , "minecraft:ore_gap" , p . first_octave , & p . amplitudes) } , n_ore_vein_a : { let p = params . get ("minecraft:ore_vein_a") . expect (concat ! ("missing noise params: " , "minecraft:ore_vein_a")) ; NormalNoise :: create (splitter , "minecraft:ore_vein_a" , p . first_octave , & p . amplitudes) } , n_ore_vein_b : { let p = params . get ("minecraft:ore_vein_b") . expect (concat ! ("missing noise params: " , "minecraft:ore_vein_b")) ; NormalNoise :: create (splitter , "minecraft:ore_vein_b" , p . first_octave , & p . amplitudes) } , n_ore_veininess : { let p = params . get ("minecraft:ore_veininess") . expect (concat ! ("missing noise params: " , "minecraft:ore_veininess")) ; NormalNoise :: create (splitter , "minecraft:ore_veininess" , p . first_octave , & p . amplitudes) } , n_pillar : { let p = params . get ("minecraft:pillar") . expect (concat ! ("missing noise params: " , "minecraft:pillar")) ; NormalNoise :: create (splitter , "minecraft:pillar" , p . first_octave , & p . amplitudes) } , n_pillar_rareness : { let p = params . get ("minecraft:pillar_rareness") . expect (concat ! ("missing noise params: " , "minecraft:pillar_rareness")) ; NormalNoise :: create (splitter , "minecraft:pillar_rareness" , p . first_octave , & p . amplitudes) } , n_pillar_thickness : { let p = params . get ("minecraft:pillar_thickness") . expect (concat ! ("missing noise params: " , "minecraft:pillar_thickness")) ; NormalNoise :: create (splitter , "minecraft:pillar_thickness" , p . first_octave , & p . amplitudes) } , n_ridge : { let p = params . get ("minecraft:ridge") . expect (concat ! ("missing noise params: " , "minecraft:ridge")) ; NormalNoise :: create (splitter , "minecraft:ridge" , p . first_octave , & p . amplitudes) } , n_spaghetti_2d : { let p = params . get ("minecraft:spaghetti_2d") . expect (concat ! ("missing noise params: " , "minecraft:spaghetti_2d")) ; NormalNoise :: create (splitter , "minecraft:spaghetti_2d" , p . first_octave , & p . amplitudes) } , n_spaghetti_2d_elevation : { let p = params . get ("minecraft:spaghetti_2d_elevation") . expect (concat ! ("missing noise params: " , "minecraft:spaghetti_2d_elevation")) ; NormalNoise :: create (splitter , "minecraft:spaghetti_2d_elevation" , p . first_octave , & p . amplitudes) } , n_spaghetti_2d_modulator : { let p = params . get ("minecraft:spaghetti_2d_modulator") . expect (concat ! ("missing noise params: " , "minecraft:spaghetti_2d_modulator")) ; NormalNoise :: create (splitter , "minecraft:spaghetti_2d_modulator" , p . first_octave , & p . amplitudes) } , n_spaghetti_2d_thickness : { let p = params . get ("minecraft:spaghetti_2d_thickness") . expect (concat ! ("missing noise params: " , "minecraft:spaghetti_2d_thickness")) ; NormalNoise :: create (splitter , "minecraft:spaghetti_2d_thickness" , p . first_octave , & p . amplitudes) } , n_spaghetti_3d_1 : { let p = params . get ("minecraft:spaghetti_3d_1") . expect (concat ! ("missing noise params: " , "minecraft:spaghetti_3d_1")) ; NormalNoise :: create (splitter , "minecraft:spaghetti_3d_1" , p . first_octave , & p . amplitudes) } , n_spaghetti_3d_2 : { let p = params . get ("minecraft:spaghetti_3d_2") . expect (concat ! ("missing noise params: " , "minecraft:spaghetti_3d_2")) ; NormalNoise :: create (splitter , "minecraft:spaghetti_3d_2" , p . first_octave , & p . amplitudes) } , n_spaghetti_3d_rarity : { let p = params . get ("minecraft:spaghetti_3d_rarity") . expect (concat ! ("missing noise params: " , "minecraft:spaghetti_3d_rarity")) ; NormalNoise :: create (splitter , "minecraft:spaghetti_3d_rarity" , p . first_octave , & p . amplitudes) } , n_spaghetti_3d_thickness : { let p = params . get ("minecraft:spaghetti_3d_thickness") . expect (concat ! ("missing noise params: " , "minecraft:spaghetti_3d_thickness")) ; NormalNoise :: create (splitter , "minecraft:spaghetti_3d_thickness" , p . first_octave , & p . amplitudes) } , n_spaghetti_roughness : { let p = params . get ("minecraft:spaghetti_roughness") . expect (concat ! ("missing noise params: " , "minecraft:spaghetti_roughness")) ; NormalNoise :: create (splitter , "minecraft:spaghetti_roughness" , p . first_octave , & p . amplitudes) } , n_spaghetti_roughness_modulator : { let p = params . get ("minecraft:spaghetti_roughness_modulator") . expect (concat ! ("missing noise params: " , "minecraft:spaghetti_roughness_modulator")) ; NormalNoise :: create (splitter , "minecraft:spaghetti_roughness_modulator" , p . first_octave , & p . amplitudes) } , n_temperature : { let p = params . get ("minecraft:temperature") . expect (concat ! ("missing noise params: " , "minecraft:temperature")) ; NormalNoise :: create (splitter , "minecraft:temperature" , p . first_octave , & p . amplitudes) } , n_vegetation : { let p = params . get ("minecraft:vegetation") . expect (concat ! ("missing noise params: " , "minecraft:vegetation")) ; NormalNoise :: create (splitter , "minecraft:vegetation" , p . first_octave , & p . amplitudes) } , blended_noise : { use steel_worldgen :: random :: PositionalRandom ; use steel_worldgen :: random :: name_hash :: NameHash ; const TERRAIN_HASH : NameHash = NameHash :: new ("minecraft:terrain") ; let mut terrain_random = splitter . with_hash_of (& TERRAIN_HASH) ; steel_worldgen :: noise :: BlendedNoise :: new (& mut terrain_random , 0.25 , 0.125 , 80.0 , 160.0 , 8.0 ,) } , } } } # [doc = r" Column-level cache for flat-cached (xz-only) density function results."] # [doc = r""] # [doc = r" Supports two modes matching vanilla's `NoiseChunk.FlatCache`:"] # [doc = r" - **Grid mode** (`init_grid()` called): Pre-computes a 2D grid of all"] # [doc = r"   in-chunk quart positions. `ensure()` does O(1) grid lookups for"] # [doc = r"   in-bounds positions, falls back to on-the-fly for out-of-bounds."] # [doc = r" - **No-grid mode** (default): Single-entry lazy cache that recomputes"] # [doc = r"   when quart-quantized coordinates change. Used by climate samplers."] # [derive (Clone)] pub struct OverworldColumnCache { # [doc = r" Raw x block coordinate (for non-flat router functions)."] pub x : i32 , # [doc = r" Raw z block coordinate (for non-flat router functions)."] pub z : i32 , # [doc = r" Effective x used to evaluate flat-cached values."] qx : i32 , # [doc = r" Effective z used to evaluate flat-cached values."] qz : i32 , valid : bool , grid_first_quart_x : i32 , grid_first_quart_z : i32 , has_grid : bool , pub df_shift_x : f64 , pub df_shift_z : f64 , pub df_overworld__continents : f64 , pub df_overworld__erosion : f64 , pub df_overworld__ridges : f64 , pub df_overworld__ridges_folded : f64 , pub df_overworld__offset : f64 , pub df_overworld__factor : f64 , pub df_overworld__jaggedness : f64 , pub router_continentalness : f64 , pub router_erosion : f64 , pub router_preliminary_surface_level : f64 , pub router_ridges : f64 , pub router_temperature : f64 , pub router_vegetation : f64 , pub inline_noise_0 : f64 , pub inline_noise_1 : f64 , grid_df_shift_x : [f64 ; 25] , grid_df_shift_z : [f64 ; 25] , grid_df_overworld__continents : [f64 ; 25] , grid_df_overworld__erosion : [f64 ; 25] , grid_df_overworld__ridges : [f64 ; 25] , grid_df_overworld__ridges_folded : [f64 ; 25] , grid_df_overworld__offset : [f64 ; 25] , grid_df_overworld__factor : [f64 ; 25] , grid_df_overworld__jaggedness : [f64 ; 25] , grid_router_continentalness : [f64 ; 25] , grid_router_erosion : [f64 ; 25] , grid_router_preliminary_surface_level : [f64 ; 25] , grid_router_ridges : [f64 ; 25] , grid_router_temperature : [f64 ; 25] , grid_router_vegetation : [f64 ; 25] , grid_inline_noise_0 : [f64 ; 25] , grid_inline_noise_1 : [f64 ; 25] } impl OverworldColumnCache { # [doc = r" Grid side length (quart positions per axis)."] const GRID_SIDE : i32 = 5 ; # [doc = r" Create a new column cache without a pre-computed grid."] # [must_use] pub fn new () -> Self { Self { x : 0 , z : 0 , qx : i32 :: MIN , qz : i32 :: MIN , valid : false , grid_first_quart_x : 0 , grid_first_quart_z : 0 , has_grid : false , df_shift_x : 0.0 , df_shift_z : 0.0 , df_overworld__continents : 0.0 , df_overworld__erosion : 0.0 , df_overworld__ridges : 0.0 , df_overworld__ridges_folded : 0.0 , df_overworld__offset : 0.0 , df_overworld__factor : 0.0 , df_overworld__jaggedness : 0.0 , router_continentalness : 0.0 , router_erosion : 0.0 , router_preliminary_surface_level : 0.0 , router_ridges : 0.0 , router_temperature : 0.0 , router_vegetation : 0.0 , inline_noise_0 : 0.0 , inline_noise_1 : 0.0 , grid_df_shift_x : [0.0 ; 25] , grid_df_shift_z : [0.0 ; 25] , grid_df_overworld__continents : [0.0 ; 25] , grid_df_overworld__erosion : [0.0 ; 25] , grid_df_overworld__ridges : [0.0 ; 25] , grid_df_overworld__ridges_folded : [0.0 ; 25] , grid_df_overworld__offset : [0.0 ; 25] , grid_df_overworld__factor : [0.0 ; 25] , grid_df_overworld__jaggedness : [0.0 ; 25] , grid_router_continentalness : [0.0 ; 25] , grid_router_erosion : [0.0 ; 25] , grid_router_preliminary_surface_level : [0.0 ; 25] , grid_router_ridges : [0.0 ; 25] , grid_router_temperature : [0.0 ; 25] , grid_router_vegetation : [0.0 ; 25] , grid_inline_noise_0 : [0.0 ; 25] , grid_inline_noise_1 : [0.0 ; 25] } } # [doc = r" Pre-compute flat-cached values for all quart positions in a chunk."] # [doc = r""] # [doc = r" After this call, `ensure()` for in-bounds positions copies from"] # [doc = r" the grid (O(1)). Out-of-bounds positions fall back to on-the-fly"] # [doc = r" evaluation at raw (non-quantized) coordinates."] pub fn init_grid (& mut self , chunk_block_x : i32 , chunk_block_z : i32 , noises : & OverworldNoises) { self . grid_first_quart_x = chunk_block_x >> 2 ; self . grid_first_quart_z = chunk_block_z >> 2 ; self . has_grid = true ; self . valid = false ; for rel_z in 0 .. Self :: GRID_SIDE { for rel_x in 0 .. Self :: GRID_SIDE { let x = ((self . grid_first_quart_x + rel_x) << 2) as f64 ; let z = ((self . grid_first_quart_z + rel_z) << 2) as f64 ; let idx = (rel_z * Self :: GRID_SIDE + rel_x) as usize ; let val = compute_shift_x (noises , & * self , x , z) ; self . df_shift_x = val ; let val = compute_shift_z (noises , & * self , x , z) ; self . df_shift_z = val ; let val = compute_overworld__continents (noises , & * self , x , z) ; self . df_overworld__continents = val ; let val = compute_overworld__erosion (noises , & * self , x , z) ; self . df_overworld__erosion = val ; let val = compute_overworld__ridges (noises , & * self , x , z) ; self . df_overworld__ridges = val ; let val = compute_overworld__ridges_folded (noises , & * self , x , z) ; self . df_overworld__ridges_folded = val ; let val = compute_overworld__offset (noises , & * self , x , z) ; self . df_overworld__offset = val ; let val = compute_overworld__factor (noises , & * self , x , z) ; self . df_overworld__factor = val ; let val = compute_overworld__jaggedness (noises , & * self , x , z) ; self . df_overworld__jaggedness = val ; self . grid_df_shift_x [idx] = self . df_shift_x ; self . grid_df_shift_z [idx] = self . df_shift_z ; self . grid_df_overworld__continents [idx] = self . df_overworld__continents ; self . grid_df_overworld__erosion [idx] = self . df_overworld__erosion ; self . grid_df_overworld__ridges [idx] = self . df_overworld__ridges ; self . grid_df_overworld__ridges_folded [idx] = self . df_overworld__ridges_folded ; self . grid_df_overworld__offset [idx] = self . df_overworld__offset ; self . grid_df_overworld__factor [idx] = self . df_overworld__factor ; self . grid_df_overworld__jaggedness [idx] = self . df_overworld__jaggedness ; let val = compute_router_continentalness (noises , & * self , x , z) ; self . router_continentalness = val ; let val = compute_router_erosion (noises , & * self , x , z) ; self . router_erosion = val ; let val = compute_router_preliminary_surface_level (noises , & * self , x , z) ; self . router_preliminary_surface_level = val ; let val = compute_router_ridges (noises , & * self , x , z) ; self . router_ridges = val ; let val = compute_router_temperature (noises , & * self , x , z) ; self . router_temperature = val ; let val = compute_router_vegetation (noises , & * self , x , z) ; self . router_vegetation = val ; self . grid_router_continentalness [idx] = self . router_continentalness ; self . grid_router_erosion [idx] = self . router_erosion ; self . grid_router_preliminary_surface_level [idx] = self . router_preliminary_surface_level ; self . grid_router_ridges [idx] = self . router_ridges ; self . grid_router_temperature [idx] = self . router_temperature ; self . grid_router_vegetation [idx] = self . router_vegetation ; self . inline_noise_0 = noises . n_spaghetti_2d_elevation . get_value_xz (x * 1.0 , z * 1.0 ,) ; self . inline_noise_1 = noises . n_jagged . get_value_xz (x * 1500.0 , z * 1500.0 ,) ; self . grid_inline_noise_0 [idx] = self . inline_noise_0 ; self . grid_inline_noise_1 [idx] = self . inline_noise_1 ; } } } # [doc = r" Ensure the cache is populated for the given `(x, z)` block coordinates."] # [doc = r""] # [doc = r" With a grid: in-bounds positions load from the pre-computed grid,"] # [doc = r" out-of-bounds positions compute at raw (non-quantized) coordinates."] # [doc = r" Without a grid: always quantizes and lazy-computes (single-entry cache)."] pub fn ensure (& mut self , x : i32 , z : i32 , noises : & OverworldNoises) { self . x = x ; self . z = z ; let quart_x = x >> 2 ; let quart_z = z >> 2 ; if self . has_grid { let rel_x = quart_x - self . grid_first_quart_x ; let rel_z = quart_z - self . grid_first_quart_z ; if rel_x >= 0 && rel_z >= 0 && rel_x < Self :: GRID_SIDE && rel_z < Self :: GRID_SIDE { let eval_x = quart_x << 2 ; let eval_z = quart_z << 2 ; if self . valid && self . qx == eval_x && self . qz == eval_z { return ; } let idx = (rel_z * Self :: GRID_SIDE + rel_x) as usize ; self . df_shift_x = self . grid_df_shift_x [idx] ; self . df_shift_z = self . grid_df_shift_z [idx] ; self . df_overworld__continents = self . grid_df_overworld__continents [idx] ; self . df_overworld__erosion = self . grid_df_overworld__erosion [idx] ; self . df_overworld__ridges = self . grid_df_overworld__ridges [idx] ; self . df_overworld__ridges_folded = self . grid_df_overworld__ridges_folded [idx] ; self . df_overworld__offset = self . grid_df_overworld__offset [idx] ; self . df_overworld__factor = self . grid_df_overworld__factor [idx] ; self . df_overworld__jaggedness = self . grid_df_overworld__jaggedness [idx] ; self . router_continentalness = self . grid_router_continentalness [idx] ; self . router_erosion = self . grid_router_erosion [idx] ; self . router_preliminary_surface_level = self . grid_router_preliminary_surface_level [idx] ; self . router_ridges = self . grid_router_ridges [idx] ; self . router_temperature = self . grid_router_temperature [idx] ; self . router_vegetation = self . grid_router_vegetation [idx] ; self . inline_noise_0 = self . grid_inline_noise_0 [idx] ; self . inline_noise_1 = self . grid_inline_noise_1 [idx] ; self . qx = eval_x ; self . qz = eval_z ; self . valid = true ; return ; } if self . valid && self . qx == x && self . qz == z { return ; } self . qx = x ; self . qz = z ; let x = x as f64 ; let z = z as f64 ; let val = compute_shift_x (noises , & * self , x , z) ; self . df_shift_x = val ; let val = compute_shift_z (noises , & * self , x , z) ; self . df_shift_z = val ; let val = compute_overworld__continents (noises , & * self , x , z) ; self . df_overworld__continents = val ; let val = compute_overworld__erosion (noises , & * self , x , z) ; self . df_overworld__erosion = val ; let val = compute_overworld__ridges (noises , & * self , x , z) ; self . df_overworld__ridges = val ; let val = compute_overworld__ridges_folded (noises , & * self , x , z) ; self . df_overworld__ridges_folded = val ; let val = compute_overworld__offset (noises , & * self , x , z) ; self . df_overworld__offset = val ; let val = compute_overworld__factor (noises , & * self , x , z) ; self . df_overworld__factor = val ; let val = compute_overworld__jaggedness (noises , & * self , x , z) ; self . df_overworld__jaggedness = val ; let val = compute_router_continentalness (noises , & * self , x , z) ; self . router_continentalness = val ; let val = compute_router_erosion (noises , & * self , x , z) ; self . router_erosion = val ; let val = compute_router_preliminary_surface_level (noises , & * self , x , z) ; self . router_preliminary_surface_level = val ; let val = compute_router_ridges (noises , & * self , x , z) ; self . router_ridges = val ; let val = compute_router_temperature (noises , & * self , x , z) ; self . router_temperature = val ; let val = compute_router_vegetation (noises , & * self , x , z) ; self . router_vegetation = val ; self . inline_noise_0 = noises . n_spaghetti_2d_elevation . get_value_xz (x * 1.0 , z * 1.0 ,) ; self . inline_noise_1 = noises . n_jagged . get_value_xz (x * 1500.0 , z * 1500.0 ,) ; self . valid = true ; return ; } let eval_x = quart_x << 2 ; let eval_z = quart_z << 2 ; if self . valid && self . qx == eval_x && self . qz == eval_z { return ; } self . qx = eval_x ; self . qz = eval_z ; let x = eval_x as f64 ; let z = eval_z as f64 ; let val = compute_shift_x (noises , & * self , x , z) ; self . df_shift_x = val ; let val = compute_shift_z (noises , & * self , x , z) ; self . df_shift_z = val ; let val = compute_overworld__continents (noises , & * self , x , z) ; self . df_overworld__continents = val ; let val = compute_overworld__erosion (noises , & * self , x , z) ; self . df_overworld__erosion = val ; let val = compute_overworld__ridges (noises , & * self , x , z) ; self . df_overworld__ridges = val ; let val = compute_overworld__ridges_folded (noises , & * self , x , z) ; self . df_overworld__ridges_folded = val ; let val = compute_overworld__offset (noises , & * self , x , z) ; self . df_overworld__offset = val ; let val = compute_overworld__factor (noises , & * self , x , z) ; self . df_overworld__factor = val ; let val = compute_overworld__jaggedness (noises , & * self , x , z) ; self . df_overworld__jaggedness = val ; let val = compute_router_continentalness (noises , & * self , x , z) ; self . router_continentalness = val ; let val = compute_router_erosion (noises , & * self , x , z) ; self . router_erosion = val ; let val = compute_router_preliminary_surface_level (noises , & * self , x , z) ; self . router_preliminary_surface_level = val ; let val = compute_router_ridges (noises , & * self , x , z) ; self . router_ridges = val ; let val = compute_router_temperature (noises , & * self , x , z) ; self . router_temperature = val ; let val = compute_router_vegetation (noises , & * self , x , z) ; self . router_vegetation = val ; self . inline_noise_0 = noises . n_spaghetti_2d_elevation . get_value_xz (x * 1.0 , z * 1.0 ,) ; self . inline_noise_1 = noises . n_jagged . get_value_xz (x * 1500.0 , z * 1500.0 ,) ; self . valid = true ; } } # [doc = "`minecraft:overworld/base_3d_noise`"] # [inline] fn compute_overworld__base_3d_noise (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , y : f64 , z : f64) -> f64 { noises . blended_noise . compute (x , y , z) } # [doc = "`minecraft:overworld/caves/spaghetti_roughness_function`"] # [inline] fn compute_overworld__caves__spaghetti_roughness_function (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , y : f64 , z : f64) -> f64 { ((((- 0.05) + (((- 0.05) * (noises . n_spaghetti_roughness_modulator . get_value (x * 1.0 , y * 1.0 , z * 1.0)))))) * (((- 0.4) + ((noises . n_spaghetti_roughness . get_value (x * 1.0 , y * 1.0 , z * 1.0)) . abs ())))) } # [doc = "`minecraft:overworld/caves/entrances`"] # [inline] fn compute_overworld__caves__entrances (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , y : f64 , z : f64) -> f64 { { let __sc_a = ((((0.37) + (noises . n_cave_entrance . get_value (x * 0.75 , y * 0.5 , z * 0.75)))) + (map_clamped (y , - 10.0 , 30.0 , 0.3 , 0.0))) ; let __sc_b = ((compute_overworld__caves__spaghetti_roughness_function (noises , cache , x , y , z)) + (clamp ((({ let __cse_0 = noises . n_spaghetti_3d_rarity . get_value (x * 2.0 , y * 1.0 , z * 2.0) ; { let __sc_a = ({ let v = __cse_0 ; if v < - 0.5 { ((0.75) * (noises . n_spaghetti_3d_1 . get_value (x * 1.3333333333333333 , y * 1.3333333333333333 , z * 1.3333333333333333))) } else { if v < 0.0 { ((1.0) * (noises . n_spaghetti_3d_1 . get_value (x * 1.0 , y * 1.0 , z * 1.0))) } else { if v < 0.5 { ((1.5) * (noises . n_spaghetti_3d_1 . get_value (x * 0.6666666666666666 , y * 0.6666666666666666 , z * 0.6666666666666666))) } else { ((2.0) * (noises . n_spaghetti_3d_1 . get_value (x * 0.5 , y * 0.5 , z * 0.5))) } } } }) . abs () ; let __sc_b = ({ let v = __cse_0 ; if v < - 0.5 { ((0.75) * (noises . n_spaghetti_3d_2 . get_value (x * 1.3333333333333333 , y * 1.3333333333333333 , z * 1.3333333333333333))) } else { if v < 0.0 { ((1.0) * (noises . n_spaghetti_3d_2 . get_value (x * 1.0 , y * 1.0 , z * 1.0))) } else { if v < 0.5 { ((1.5) * (noises . n_spaghetti_3d_2 . get_value (x * 0.6666666666666666 , y * 0.6666666666666666 , z * 0.6666666666666666))) } else { ((2.0) * (noises . n_spaghetti_3d_2 . get_value (x * 0.5 , y * 0.5 , z * 0.5))) } } } }) . abs () ; if __sc_a > __sc_b { __sc_a } else { __sc_b } } }) + (((- 0.0765) + (((- 0.011499999999999996) * (noises . n_spaghetti_3d_thickness . get_value (x * 1.0 , y * 1.0 , z * 1.0))))))) , - 1.0 , 1.0))) ; if __sc_a < __sc_b { __sc_a } else { __sc_b } } } # [doc = "`minecraft:y`"] # [inline] fn compute_y (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , y : f64 , z : f64) -> f64 { map_clamped (y , - 4064.0 , 4062.0 , - 4064.0 , 4062.0) } # [doc = "`minecraft:overworld/caves/noodle`"] # [inline] fn compute_overworld__caves__noodle (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , y : f64 , z : f64) -> f64 { { let v = { let v = compute_y (noises , cache , x , y , z) ; if v >= - 60.0 && v < 321.0 { noises . n_noodle . get_value (x * 1.0 , y * 1.0 , z * 1.0) } else { - 1.0 } } ; if v >= - 1000000.0 && v < 0.0 { 64.0 } else { { let __cse_1 = compute_y (noises , cache , x , y , z) ; (({ let v = __cse_1 ; if v >= - 60.0 && v < 321.0 { ((- 0.07500000000000001) + (((- 0.025) * (noises . n_noodle_thickness . get_value (x * 1.0 , y * 1.0 , z * 1.0))))) } else { 0.0 } }) + (((1.5) * ({ let __cse_2 = compute_y (noises , cache , x , y , z) ; { let __sc_a = ({ let v = __cse_2 ; if v >= - 60.0 && v < 321.0 { noises . n_noodle_ridge_a . get_value (x * 2.6666666666666665 , y * 2.6666666666666665 , z * 2.6666666666666665) } else { 0.0 } }) . abs () ; let __sc_b = ({ let v = compute_y (noises , cache , x , y , z) ; if v >= - 60.0 && v < 321.0 { noises . n_noodle_ridge_b . get_value (x * 2.6666666666666665 , y * 2.6666666666666665 , z * 2.6666666666666665) } else { 0.0 } }) . abs () ; if __sc_a > __sc_b { __sc_a } else { __sc_b } } })))) } } } } # [doc = "`minecraft:overworld/caves/pillars`"] # [inline] fn compute_overworld__caves__pillars (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , y : f64 , z : f64) -> f64 { ((((((2.0) * (noises . n_pillar . get_value (x * 25.0 , y * 0.3 , z * 25.0)))) + (((- 1.0) + (((- 1.0) * (noises . n_pillar_rareness . get_value (x * 1.0 , y * 1.0 , z * 1.0)))))))) * ({ let v = ((0.55) + (((0.55) * (noises . n_pillar_thickness . get_value (x * 1.0 , y * 1.0 , z * 1.0))))) ; v * v * v })) } # [doc = "`minecraft:overworld/caves/spaghetti_2d_thickness_modulator`"] # [inline] fn compute_overworld__caves__spaghetti_2d_thickness_modulator (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , y : f64 , z : f64) -> f64 { ((- 0.95) + (((- 0.35000000000000003) * (noises . n_spaghetti_2d_thickness . get_value (x * 2.0 , y * 1.0 , z * 2.0))))) } # [doc = "`minecraft:overworld/caves/spaghetti_2d`"] # [inline] fn compute_overworld__caves__spaghetti_2d (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , y : f64 , z : f64) -> f64 { clamp ({ let __cse_3 = compute_overworld__caves__spaghetti_2d_thickness_modulator (noises , cache , x , y , z) ; { let __sc_a = ((({ let v = noises . n_spaghetti_2d_modulator . get_value (x * 2.0 , y * 1.0 , z * 2.0) ; if v < - 0.75 { ((0.5) * (noises . n_spaghetti_2d . get_value (x * 2.0 , y * 2.0 , z * 2.0))) } else { if v < - 0.5 { ((0.75) * (noises . n_spaghetti_2d . get_value (x * 1.3333333333333333 , y * 1.3333333333333333 , z * 1.3333333333333333))) } else { if v < 0.5 { ((1.0) * (noises . n_spaghetti_2d . get_value (x * 1.0 , y * 1.0 , z * 1.0))) } else { if v < 0.75 { ((2.0) * (noises . n_spaghetti_2d . get_value (x * 0.5 , y * 0.5 , z * 0.5))) } else { ((3.0) * (noises . n_spaghetti_2d . get_value (x * 0.3333333333333333 , y * 0.3333333333333333 , z * 0.3333333333333333))) } } } } }) . abs ()) + (((0.083) * (__cse_3)))) ; let __sc_b = { let v = (((((((0.0) + (((8.0) * (cache . inline_noise_0))))) + (map_clamped (y , - 64.0 , 320.0 , 8.0 , - 40.0)))) . abs ()) + (__cse_3)) ; v * v * v } ; if __sc_a > __sc_b { __sc_a } else { __sc_b } } } , - 1.0 , 1.0) } # [doc = "`minecraft:shift_x`"] # [inline] fn compute_shift_x (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , z : f64) -> f64 { noises . n_offset . get_value_xz (x * 0.25 , z * 0.25) * 4.0 } # [doc = "`minecraft:shift_z`"] # [inline] fn compute_shift_z (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , z : f64) -> f64 { noises . n_offset . get_value_xy (z * 0.25 , x * 0.25) * 4.0 } # [doc = "`minecraft:overworld/continents`"] # [inline] fn compute_overworld__continents (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , z : f64) -> f64 { { let dx = cache . df_shift_x ; let dz = cache . df_shift_z ; noises . n_continentalness . get_value_xz (x * 0.25 + dx , z * 0.25 + dz ,) } } # [doc = "`minecraft:overworld/erosion`"] # [inline] fn compute_overworld__erosion (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , z : f64) -> f64 { { let dx = cache . df_shift_x ; let dz = cache . df_shift_z ; noises . n_erosion . get_value_xz (x * 0.25 + dx , z * 0.25 + dz ,) } } # [doc = "`minecraft:overworld/ridges`"] # [inline] fn compute_overworld__ridges (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , z : f64) -> f64 { { let dx = cache . df_shift_x ; let dz = cache . df_shift_z ; noises . n_ridge . get_value_xz (x * 0.25 + dx , z * 0.25 + dz ,) } } # [doc = "`minecraft:overworld/ridges_folded`"] # [inline] fn compute_overworld__ridges_folded (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , z : f64) -> f64 { ((- 3.0) * (((- 0.3333333333333333) + ((((- 0.6666666666666666) + ((cache . df_overworld__ridges) . abs ()))) . abs ())))) } # [doc = "`minecraft:overworld/offset`"] # [inline] fn compute_overworld__offset (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , z : f64) -> f64 { ((((0.0) * (((1.0) + (((- 1.0) * (1.0))))))) + (((((- 0.5037500262260437) + ({ let __coord = (cache . df_overworld__continents) as f32 ; if __coord < - 1.1 { f64 :: from (0.044 + 0.0 * (__coord - - 1.1)) } else if __coord < - 1.02 { let __y1 = 0.044 ; let __y2 = - 0.2222 ; let __t = (__coord - - 1.1) / (- 1.02 - - 1.1) ; let __h = - 1.02 - - 1.1 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < - 0.51 { let __y1 = - 0.2222 ; let __y2 = - 0.2222 ; let __t = (__coord - - 1.02) / (- 0.51 - - 1.02) ; let __h = - 0.51 - - 1.02 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < - 0.44 { let __y1 = - 0.2222 ; let __y2 = - 0.12 ; let __t = (__coord - - 0.51) / (- 0.44 - - 0.51) ; let __h = - 0.44 - - 0.51 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < - 0.18 { let __y1 = - 0.12 ; let __y2 = - 0.12 ; let __t = (__coord - - 0.44) / (- 0.18 - - 0.44) ; let __h = - 0.18 - - 0.44 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < - 0.16 { let __y1 = - 0.12 ; let __y2 = spline_helper_0 (noises , cache , x , z) ; let __t = (__coord - - 0.18) / (- 0.16 - - 0.18) ; let __h = - 0.16 - - 0.18 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < - 0.15 { let __y1 = spline_helper_0 (noises , cache , x , z) ; let __y2 = spline_helper_8 (noises , cache , x , z) ; let __t = (__coord - - 0.16) / (- 0.15 - - 0.16) ; let __h = - 0.15 - - 0.16 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < - 0.1 { let __y1 = spline_helper_8 (noises , cache , x , z) ; let __y2 = spline_helper_16 (noises , cache , x , z) ; let __t = (__coord - - 0.15) / (- 0.1 - - 0.15) ; let __h = - 0.1 - - 0.15 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 0.25 { let __y1 = spline_helper_16 (noises , cache , x , z) ; let __y2 = spline_helper_24 (noises , cache , x , z) ; let __t = (__coord - - 0.1) / (0.25 - - 0.1) ; let __h = 0.25 - - 0.1 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 1.0 { let __y1 = spline_helper_24 (noises , cache , x , z) ; let __y2 = spline_helper_38 (noises , cache , x , z) ; let __t = (__coord - 0.25) / (1.0 - 0.25) ; let __h = 1.0 - 0.25 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else { f64 :: from (spline_helper_38 (noises , cache , x , z) + 0.0 * (__coord - 1.0)) } }))) * (1.0)))) } # [doc = "`minecraft:overworld/depth`"] # [inline] fn compute_overworld__depth (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , y : f64 , z : f64) -> f64 { ((map_clamped (y , - 64.0 , 320.0 , 1.5 , - 1.5)) + (cache . df_overworld__offset)) } # [doc = "`minecraft:overworld/factor`"] # [inline] fn compute_overworld__factor (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , z : f64) -> f64 { ((10.0) + (((1.0) * (((- 10.0) + ({ let __coord = (cache . df_overworld__continents) as f32 ; if __coord < - 0.19 { f64 :: from (3.95 + 0.0 * (__coord - - 0.19)) } else if __coord < - 0.15 { let __y1 = 3.95 ; let __y2 = spline_helper_52 (noises , cache , x , z) ; let __t = (__coord - - 0.19) / (- 0.15 - - 0.19) ; let __h = - 0.15 - - 0.19 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < - 0.1 { let __y1 = spline_helper_52 (noises , cache , x , z) ; let __y2 = spline_helper_63 (noises , cache , x , z) ; let __t = (__coord - - 0.15) / (- 0.1 - - 0.15) ; let __h = - 0.1 - - 0.15 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 0.03 { let __y1 = spline_helper_63 (noises , cache , x , z) ; let __y2 = spline_helper_74 (noises , cache , x , z) ; let __t = (__coord - - 0.1) / (0.03 - - 0.1) ; let __h = 0.03 - - 0.1 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 0.06 { let __y1 = spline_helper_74 (noises , cache , x , z) ; let __y2 = spline_helper_85 (noises , cache , x , z) ; let __t = (__coord - 0.03) / (0.06 - 0.03) ; let __h = 0.06 - 0.03 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else { f64 :: from (spline_helper_85 (noises , cache , x , z) + 0.0 * (__coord - 0.06)) } })))))) } # [doc = "`minecraft:overworld/jaggedness`"] # [inline] fn compute_overworld__jaggedness (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , z : f64) -> f64 { ((0.0) + (((1.0) * (((- 0.0) + ({ let __coord = (cache . df_overworld__continents) as f32 ; if __coord < - 0.11 { f64 :: from (0.0 + 0.0 * (__coord - - 0.11)) } else if __coord < 0.03 { let __y1 = 0.0 ; let __y2 = spline_helper_100 (noises , cache , x , z) ; let __t = (__coord - - 0.11) / (0.03 - - 0.11) ; let __h = 0.03 - - 0.11 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 0.65 { let __y1 = spline_helper_100 (noises , cache , x , z) ; let __y2 = spline_helper_107 (noises , cache , x , z) ; let __t = (__coord - 0.03) / (0.65 - 0.03) ; let __h = 0.65 - 0.03 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else { f64 :: from (spline_helper_107 (noises , cache , x , z) + 0.0 * (__coord - 0.65)) } })))))) } # [doc = "`minecraft:overworld/sloped_cheese`"] # [inline] fn compute_overworld__sloped_cheese (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , y : f64 , z : f64) -> f64 { ((((4.0) * ({ let v = ((((compute_overworld__depth (noises , cache , x , y , z)) + (((cache . df_overworld__jaggedness) * ({ let v = cache . inline_noise_1 ; if v > 0.0 { v } else { v * 0.5 } }))))) * (cache . df_overworld__factor)) ; if v > 0.0 { v } else { v * 0.25 } }))) + (compute_overworld__base_3d_noise (noises , cache , x , y , z))) } # [inline] fn spline_helper_1 (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , z : f64) -> f32 { ({ let __coord = (cache . df_overworld__ridges_folded) as f32 ; if __coord < - 1.0 { f64 :: from (- 0.08880186 + 0.38940096 * (__coord - - 1.0)) } else if __coord < 1.0 { let __y1 = - 0.08880186 ; let __y2 = 0.69000006 ; let __t = (__coord - - 1.0) / (1.0 - - 1.0) ; let __h = 1.0 - - 1.0 ; let __a = 0.38940096 * __h - (__y2 - __y1) ; let __b = - 0.38940096 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else { f64 :: from (0.69000006 + 0.38940096 * (__coord - 1.0)) } }) as f32 } # [inline] fn spline_helper_2 (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , z : f64) -> f32 { ({ let __coord = (cache . df_overworld__ridges_folded) as f32 ; if __coord < - 1.0 { f64 :: from (- 0.115760356 + 0.37788022 * (__coord - - 1.0)) } else if __coord < 1.0 { let __y1 = - 0.115760356 ; let __y2 = 0.6400001 ; let __t = (__coord - - 1.0) / (1.0 - - 1.0) ; let __h = 1.0 - - 1.0 ; let __a = 0.37788022 * __h - (__y2 - __y1) ; let __b = - 0.37788022 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else { f64 :: from (0.6400001 + 0.37788022 * (__coord - 1.0)) } }) as f32 } # [inline] fn spline_helper_3 (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , z : f64) -> f32 { ({ let __coord = (cache . df_overworld__ridges_folded) as f32 ; if __coord < - 1.0 { f64 :: from (- 0.2222 + 0.0 * (__coord - - 1.0)) } else if __coord < - 0.75 { let __y1 = - 0.2222 ; let __y2 = - 0.2222 ; let __t = (__coord - - 1.0) / (- 0.75 - - 1.0) ; let __h = - 0.75 - - 1.0 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < - 0.65 { let __y1 = - 0.2222 ; let __y2 = 0.0 ; let __t = (__coord - - 0.75) / (- 0.65 - - 0.75) ; let __h = - 0.65 - - 0.75 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 0.5954547 { let __y1 = 0.0 ; let __y2 = 0.000000029802322 ; let __t = (__coord - - 0.65) / (0.5954547 - - 0.65) ; let __h = 0.5954547 - - 0.65 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 0.6054547 { let __y1 = 0.000000029802322 ; let __y2 = 0.000000029802322 ; let __t = (__coord - 0.5954547) / (0.6054547 - 0.5954547) ; let __h = 0.6054547 - 0.5954547 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.2534563 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 1.0 { let __y1 = 0.000000029802322 ; let __y2 = 0.100000024 ; let __t = (__coord - 0.6054547) / (1.0 - 0.6054547) ; let __h = 1.0 - 0.6054547 ; let __a = 0.2534563 * __h - (__y2 - __y1) ; let __b = - 0.2534563 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else { f64 :: from (0.100000024 + 0.2534563 * (__coord - 1.0)) } }) as f32 } # [inline] fn spline_helper_4 (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , z : f64) -> f32 { ({ let __coord = (cache . df_overworld__ridges_folded) as f32 ; if __coord < - 1.0 { f64 :: from (- 0.3 + 0.5 * (__coord - - 1.0)) } else if __coord < - 0.4 { let __y1 = - 0.3 ; let __y2 = 0.05 ; let __t = (__coord - - 1.0) / (- 0.4 - - 1.0) ; let __h = - 0.4 - - 1.0 ; let __a = 0.5 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 0.0 { let __y1 = 0.05 ; let __y2 = 0.05 ; let __t = (__coord - - 0.4) / (0.0 - - 0.4) ; let __h = 0.0 - - 0.4 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 0.4 { let __y1 = 0.05 ; let __y2 = 0.05 ; let __t = (__coord - 0.0) / (0.4 - 0.0) ; let __h = 0.4 - 0.0 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 1.0 { let __y1 = 0.05 ; let __y2 = 0.060000002 ; let __t = (__coord - 0.4) / (1.0 - 0.4) ; let __h = 1.0 - 0.4 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.007000001 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else { f64 :: from (0.060000002 + 0.007000001 * (__coord - 1.0)) } }) as f32 } # [inline] fn spline_helper_5 (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , z : f64) -> f32 { ({ let __coord = (cache . df_overworld__ridges_folded) as f32 ; if __coord < - 1.0 { f64 :: from (- 0.15 + 0.5 * (__coord - - 1.0)) } else if __coord < - 0.4 { let __y1 = - 0.15 ; let __y2 = 0.0 ; let __t = (__coord - - 1.0) / (- 0.4 - - 1.0) ; let __h = - 0.4 - - 1.0 ; let __a = 0.5 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 0.0 { let __y1 = 0.0 ; let __y2 = 0.0 ; let __t = (__coord - - 0.4) / (0.0 - - 0.4) ; let __h = 0.0 - - 0.4 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 0.4 { let __y1 = 0.0 ; let __y2 = 0.05 ; let __t = (__coord - 0.0) / (0.4 - 0.0) ; let __h = 0.4 - 0.0 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.1 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 1.0 { let __y1 = 0.05 ; let __y2 = 0.060000002 ; let __t = (__coord - 0.4) / (1.0 - 0.4) ; let __h = 1.0 - 0.4 ; let __a = 0.1 * __h - (__y2 - __y1) ; let __b = - 0.007000001 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else { f64 :: from (0.060000002 + 0.007000001 * (__coord - 1.0)) } }) as f32 } # [inline] fn spline_helper_6 (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , z : f64) -> f32 { ({ let __coord = (cache . df_overworld__ridges_folded) as f32 ; if __coord < - 1.0 { f64 :: from (- 0.15 + 0.5 * (__coord - - 1.0)) } else if __coord < - 0.4 { let __y1 = - 0.15 ; let __y2 = 0.0 ; let __t = (__coord - - 1.0) / (- 0.4 - - 1.0) ; let __h = - 0.4 - - 1.0 ; let __a = 0.5 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 0.0 { let __y1 = 0.0 ; let __y2 = 0.0 ; let __t = (__coord - - 0.4) / (0.0 - - 0.4) ; let __h = 0.0 - - 0.4 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 0.4 { let __y1 = 0.0 ; let __y2 = 0.0 ; let __t = (__coord - 0.0) / (0.4 - 0.0) ; let __h = 0.4 - 0.0 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 1.0 { let __y1 = 0.0 ; let __y2 = 0.0 ; let __t = (__coord - 0.4) / (1.0 - 0.4) ; let __h = 1.0 - 0.4 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else { f64 :: from (0.0 + 0.0 * (__coord - 1.0)) } }) as f32 } # [inline] fn spline_helper_7 (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , z : f64) -> f32 { ({ let __coord = (cache . df_overworld__ridges_folded) as f32 ; if __coord < - 1.0 { f64 :: from (- 0.02 + 0.0 * (__coord - - 1.0)) } else if __coord < - 0.4 { let __y1 = - 0.02 ; let __y2 = - 0.03 ; let __t = (__coord - - 1.0) / (- 0.4 - - 1.0) ; let __h = - 0.4 - - 1.0 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 0.0 { let __y1 = - 0.03 ; let __y2 = - 0.03 ; let __t = (__coord - - 0.4) / (0.0 - - 0.4) ; let __h = 0.0 - - 0.4 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 0.4 { let __y1 = - 0.03 ; let __y2 = 0.0 ; let __t = (__coord - 0.0) / (0.4 - 0.0) ; let __h = 0.4 - 0.0 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.06 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 1.0 { let __y1 = 0.0 ; let __y2 = 0.0 ; let __t = (__coord - 0.4) / (1.0 - 0.4) ; let __h = 1.0 - 0.4 ; let __a = 0.06 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else { f64 :: from (0.0 + 0.0 * (__coord - 1.0)) } }) as f32 } # [inline] fn spline_helper_0 (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , z : f64) -> f32 { ({ let __coord = (cache . df_overworld__erosion) as f32 ; if __coord < - 0.85 { f64 :: from (spline_helper_1 (noises , cache , x , z) + 0.0 * (__coord - - 0.85)) } else if __coord < - 0.7 { let __y1 = spline_helper_1 (noises , cache , x , z) ; let __y2 = spline_helper_2 (noises , cache , x , z) ; let __t = (__coord - - 0.85) / (- 0.7 - - 0.85) ; let __h = - 0.7 - - 0.85 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < - 0.4 { let __y1 = spline_helper_2 (noises , cache , x , z) ; let __y2 = spline_helper_3 (noises , cache , x , z) ; let __t = (__coord - - 0.7) / (- 0.4 - - 0.7) ; let __h = - 0.4 - - 0.7 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < - 0.35 { let __y1 = spline_helper_3 (noises , cache , x , z) ; let __y2 = spline_helper_4 (noises , cache , x , z) ; let __t = (__coord - - 0.4) / (- 0.35 - - 0.4) ; let __h = - 0.35 - - 0.4 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < - 0.1 { let __y1 = spline_helper_4 (noises , cache , x , z) ; let __y2 = spline_helper_5 (noises , cache , x , z) ; let __t = (__coord - - 0.35) / (- 0.1 - - 0.35) ; let __h = - 0.1 - - 0.35 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 0.2 { let __y1 = spline_helper_5 (noises , cache , x , z) ; let __y2 = spline_helper_6 (noises , cache , x , z) ; let __t = (__coord - - 0.1) / (0.2 - - 0.1) ; let __h = 0.2 - - 0.1 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 0.7 { let __y1 = spline_helper_6 (noises , cache , x , z) ; let __y2 = spline_helper_7 (noises , cache , x , z) ; let __t = (__coord - 0.2) / (0.7 - 0.2) ; let __h = 0.7 - 0.2 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else { f64 :: from (spline_helper_7 (noises , cache , x , z) + 0.0 * (__coord - 0.7)) } }) as f32 } # [inline] fn spline_helper_9 (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , z : f64) -> f32 { ({ let __coord = (cache . df_overworld__ridges_folded) as f32 ; if __coord < - 1.0 { f64 :: from (- 0.08880186 + 0.38940096 * (__coord - - 1.0)) } else if __coord < 1.0 { let __y1 = - 0.08880186 ; let __y2 = 0.69000006 ; let __t = (__coord - - 1.0) / (1.0 - - 1.0) ; let __h = 1.0 - - 1.0 ; let __a = 0.38940096 * __h - (__y2 - __y1) ; let __b = - 0.38940096 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else { f64 :: from (0.69000006 + 0.38940096 * (__coord - 1.0)) } }) as f32 } # [inline] fn spline_helper_10 (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , z : f64) -> f32 { ({ let __coord = (cache . df_overworld__ridges_folded) as f32 ; if __coord < - 1.0 { f64 :: from (- 0.115760356 + 0.37788022 * (__coord - - 1.0)) } else if __coord < 1.0 { let __y1 = - 0.115760356 ; let __y2 = 0.6400001 ; let __t = (__coord - - 1.0) / (1.0 - - 1.0) ; let __h = 1.0 - - 1.0 ; let __a = 0.37788022 * __h - (__y2 - __y1) ; let __b = - 0.37788022 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else { f64 :: from (0.6400001 + 0.37788022 * (__coord - 1.0)) } }) as f32 } # [inline] fn spline_helper_11 (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , z : f64) -> f32 { ({ let __coord = (cache . df_overworld__ridges_folded) as f32 ; if __coord < - 1.0 { f64 :: from (- 0.2222 + 0.0 * (__coord - - 1.0)) } else if __coord < - 0.75 { let __y1 = - 0.2222 ; let __y2 = - 0.2222 ; let __t = (__coord - - 1.0) / (- 0.75 - - 1.0) ; let __h = - 0.75 - - 1.0 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < - 0.65 { let __y1 = - 0.2222 ; let __y2 = 0.0 ; let __t = (__coord - - 0.75) / (- 0.65 - - 0.75) ; let __h = - 0.65 - - 0.75 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 0.5954547 { let __y1 = 0.0 ; let __y2 = 0.000000029802322 ; let __t = (__coord - - 0.65) / (0.5954547 - - 0.65) ; let __h = 0.5954547 - - 0.65 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 0.6054547 { let __y1 = 0.000000029802322 ; let __y2 = 0.000000029802322 ; let __t = (__coord - 0.5954547) / (0.6054547 - 0.5954547) ; let __h = 0.6054547 - 0.5954547 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.2534563 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 1.0 { let __y1 = 0.000000029802322 ; let __y2 = 0.100000024 ; let __t = (__coord - 0.6054547) / (1.0 - 0.6054547) ; let __h = 1.0 - 0.6054547 ; let __a = 0.2534563 * __h - (__y2 - __y1) ; let __b = - 0.2534563 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else { f64 :: from (0.100000024 + 0.2534563 * (__coord - 1.0)) } }) as f32 } # [inline] fn spline_helper_12 (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , z : f64) -> f32 { ({ let __coord = (cache . df_overworld__ridges_folded) as f32 ; if __coord < - 1.0 { f64 :: from (- 0.3 + 0.5 * (__coord - - 1.0)) } else if __coord < - 0.4 { let __y1 = - 0.3 ; let __y2 = 0.05 ; let __t = (__coord - - 1.0) / (- 0.4 - - 1.0) ; let __h = - 0.4 - - 1.0 ; let __a = 0.5 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 0.0 { let __y1 = 0.05 ; let __y2 = 0.05 ; let __t = (__coord - - 0.4) / (0.0 - - 0.4) ; let __h = 0.0 - - 0.4 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 0.4 { let __y1 = 0.05 ; let __y2 = 0.05 ; let __t = (__coord - 0.0) / (0.4 - 0.0) ; let __h = 0.4 - 0.0 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 1.0 { let __y1 = 0.05 ; let __y2 = 0.060000002 ; let __t = (__coord - 0.4) / (1.0 - 0.4) ; let __h = 1.0 - 0.4 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.007000001 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else { f64 :: from (0.060000002 + 0.007000001 * (__coord - 1.0)) } }) as f32 } # [inline] fn spline_helper_13 (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , z : f64) -> f32 { ({ let __coord = (cache . df_overworld__ridges_folded) as f32 ; if __coord < - 1.0 { f64 :: from (- 0.15 + 0.5 * (__coord - - 1.0)) } else if __coord < - 0.4 { let __y1 = - 0.15 ; let __y2 = 0.0 ; let __t = (__coord - - 1.0) / (- 0.4 - - 1.0) ; let __h = - 0.4 - - 1.0 ; let __a = 0.5 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 0.0 { let __y1 = 0.0 ; let __y2 = 0.0 ; let __t = (__coord - - 0.4) / (0.0 - - 0.4) ; let __h = 0.0 - - 0.4 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 0.4 { let __y1 = 0.0 ; let __y2 = 0.05 ; let __t = (__coord - 0.0) / (0.4 - 0.0) ; let __h = 0.4 - 0.0 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.1 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 1.0 { let __y1 = 0.05 ; let __y2 = 0.060000002 ; let __t = (__coord - 0.4) / (1.0 - 0.4) ; let __h = 1.0 - 0.4 ; let __a = 0.1 * __h - (__y2 - __y1) ; let __b = - 0.007000001 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else { f64 :: from (0.060000002 + 0.007000001 * (__coord - 1.0)) } }) as f32 } # [inline] fn spline_helper_14 (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , z : f64) -> f32 { ({ let __coord = (cache . df_overworld__ridges_folded) as f32 ; if __coord < - 1.0 { f64 :: from (- 0.15 + 0.5 * (__coord - - 1.0)) } else if __coord < - 0.4 { let __y1 = - 0.15 ; let __y2 = 0.0 ; let __t = (__coord - - 1.0) / (- 0.4 - - 1.0) ; let __h = - 0.4 - - 1.0 ; let __a = 0.5 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 0.0 { let __y1 = 0.0 ; let __y2 = 0.0 ; let __t = (__coord - - 0.4) / (0.0 - - 0.4) ; let __h = 0.0 - - 0.4 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 0.4 { let __y1 = 0.0 ; let __y2 = 0.0 ; let __t = (__coord - 0.0) / (0.4 - 0.0) ; let __h = 0.4 - 0.0 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 1.0 { let __y1 = 0.0 ; let __y2 = 0.0 ; let __t = (__coord - 0.4) / (1.0 - 0.4) ; let __h = 1.0 - 0.4 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else { f64 :: from (0.0 + 0.0 * (__coord - 1.0)) } }) as f32 } # [inline] fn spline_helper_15 (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , z : f64) -> f32 { ({ let __coord = (cache . df_overworld__ridges_folded) as f32 ; if __coord < - 1.0 { f64 :: from (- 0.02 + 0.0 * (__coord - - 1.0)) } else if __coord < - 0.4 { let __y1 = - 0.02 ; let __y2 = - 0.03 ; let __t = (__coord - - 1.0) / (- 0.4 - - 1.0) ; let __h = - 0.4 - - 1.0 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 0.0 { let __y1 = - 0.03 ; let __y2 = - 0.03 ; let __t = (__coord - - 0.4) / (0.0 - - 0.4) ; let __h = 0.0 - - 0.4 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 0.4 { let __y1 = - 0.03 ; let __y2 = 0.0 ; let __t = (__coord - 0.0) / (0.4 - 0.0) ; let __h = 0.4 - 0.0 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.06 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 1.0 { let __y1 = 0.0 ; let __y2 = 0.0 ; let __t = (__coord - 0.4) / (1.0 - 0.4) ; let __h = 1.0 - 0.4 ; let __a = 0.06 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else { f64 :: from (0.0 + 0.0 * (__coord - 1.0)) } }) as f32 } # [inline] fn spline_helper_8 (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , z : f64) -> f32 { ({ let __coord = (cache . df_overworld__erosion) as f32 ; if __coord < - 0.85 { f64 :: from (spline_helper_9 (noises , cache , x , z) + 0.0 * (__coord - - 0.85)) } else if __coord < - 0.7 { let __y1 = spline_helper_9 (noises , cache , x , z) ; let __y2 = spline_helper_10 (noises , cache , x , z) ; let __t = (__coord - - 0.85) / (- 0.7 - - 0.85) ; let __h = - 0.7 - - 0.85 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < - 0.4 { let __y1 = spline_helper_10 (noises , cache , x , z) ; let __y2 = spline_helper_11 (noises , cache , x , z) ; let __t = (__coord - - 0.7) / (- 0.4 - - 0.7) ; let __h = - 0.4 - - 0.7 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < - 0.35 { let __y1 = spline_helper_11 (noises , cache , x , z) ; let __y2 = spline_helper_12 (noises , cache , x , z) ; let __t = (__coord - - 0.4) / (- 0.35 - - 0.4) ; let __h = - 0.35 - - 0.4 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < - 0.1 { let __y1 = spline_helper_12 (noises , cache , x , z) ; let __y2 = spline_helper_13 (noises , cache , x , z) ; let __t = (__coord - - 0.35) / (- 0.1 - - 0.35) ; let __h = - 0.1 - - 0.35 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 0.2 { let __y1 = spline_helper_13 (noises , cache , x , z) ; let __y2 = spline_helper_14 (noises , cache , x , z) ; let __t = (__coord - - 0.1) / (0.2 - - 0.1) ; let __h = 0.2 - - 0.1 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 0.7 { let __y1 = spline_helper_14 (noises , cache , x , z) ; let __y2 = spline_helper_15 (noises , cache , x , z) ; let __t = (__coord - 0.2) / (0.7 - 0.2) ; let __h = 0.7 - 0.2 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else { f64 :: from (spline_helper_15 (noises , cache , x , z) + 0.0 * (__coord - 0.7)) } }) as f32 } # [inline] fn spline_helper_17 (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , z : f64) -> f32 { ({ let __coord = (cache . df_overworld__ridges_folded) as f32 ; if __coord < - 1.0 { f64 :: from (- 0.08880186 + 0.38940096 * (__coord - - 1.0)) } else if __coord < 1.0 { let __y1 = - 0.08880186 ; let __y2 = 0.69000006 ; let __t = (__coord - - 1.0) / (1.0 - - 1.0) ; let __h = 1.0 - - 1.0 ; let __a = 0.38940096 * __h - (__y2 - __y1) ; let __b = - 0.38940096 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else { f64 :: from (0.69000006 + 0.38940096 * (__coord - 1.0)) } }) as f32 } # [inline] fn spline_helper_18 (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , z : f64) -> f32 { ({ let __coord = (cache . df_overworld__ridges_folded) as f32 ; if __coord < - 1.0 { f64 :: from (- 0.115760356 + 0.37788022 * (__coord - - 1.0)) } else if __coord < 1.0 { let __y1 = - 0.115760356 ; let __y2 = 0.6400001 ; let __t = (__coord - - 1.0) / (1.0 - - 1.0) ; let __h = 1.0 - - 1.0 ; let __a = 0.37788022 * __h - (__y2 - __y1) ; let __b = - 0.37788022 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else { f64 :: from (0.6400001 + 0.37788022 * (__coord - 1.0)) } }) as f32 } # [inline] fn spline_helper_19 (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , z : f64) -> f32 { ({ let __coord = (cache . df_overworld__ridges_folded) as f32 ; if __coord < - 1.0 { f64 :: from (- 0.2222 + 0.0 * (__coord - - 1.0)) } else if __coord < - 0.75 { let __y1 = - 0.2222 ; let __y2 = - 0.2222 ; let __t = (__coord - - 1.0) / (- 0.75 - - 1.0) ; let __h = - 0.75 - - 1.0 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < - 0.65 { let __y1 = - 0.2222 ; let __y2 = 0.0 ; let __t = (__coord - - 0.75) / (- 0.65 - - 0.75) ; let __h = - 0.65 - - 0.75 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 0.5954547 { let __y1 = 0.0 ; let __y2 = 0.000000029802322 ; let __t = (__coord - - 0.65) / (0.5954547 - - 0.65) ; let __h = 0.5954547 - - 0.65 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 0.6054547 { let __y1 = 0.000000029802322 ; let __y2 = 0.000000029802322 ; let __t = (__coord - 0.5954547) / (0.6054547 - 0.5954547) ; let __h = 0.6054547 - 0.5954547 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.2534563 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 1.0 { let __y1 = 0.000000029802322 ; let __y2 = 0.100000024 ; let __t = (__coord - 0.6054547) / (1.0 - 0.6054547) ; let __h = 1.0 - 0.6054547 ; let __a = 0.2534563 * __h - (__y2 - __y1) ; let __b = - 0.2534563 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else { f64 :: from (0.100000024 + 0.2534563 * (__coord - 1.0)) } }) as f32 } # [inline] fn spline_helper_20 (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , z : f64) -> f32 { ({ let __coord = (cache . df_overworld__ridges_folded) as f32 ; if __coord < - 1.0 { f64 :: from (- 0.25 + 0.5 * (__coord - - 1.0)) } else if __coord < - 0.4 { let __y1 = - 0.25 ; let __y2 = 0.05 ; let __t = (__coord - - 1.0) / (- 0.4 - - 1.0) ; let __h = - 0.4 - - 1.0 ; let __a = 0.5 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 0.0 { let __y1 = 0.05 ; let __y2 = 0.05 ; let __t = (__coord - - 0.4) / (0.0 - - 0.4) ; let __h = 0.0 - - 0.4 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 0.4 { let __y1 = 0.05 ; let __y2 = 0.05 ; let __t = (__coord - 0.0) / (0.4 - 0.0) ; let __h = 0.4 - 0.0 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 1.0 { let __y1 = 0.05 ; let __y2 = 0.060000002 ; let __t = (__coord - 0.4) / (1.0 - 0.4) ; let __h = 1.0 - 0.4 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.007000001 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else { f64 :: from (0.060000002 + 0.007000001 * (__coord - 1.0)) } }) as f32 } # [inline] fn spline_helper_21 (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , z : f64) -> f32 { ({ let __coord = (cache . df_overworld__ridges_folded) as f32 ; if __coord < - 1.0 { f64 :: from (- 0.1 + 0.5 * (__coord - - 1.0)) } else if __coord < - 0.4 { let __y1 = - 0.1 ; let __y2 = 0.001 ; let __t = (__coord - - 1.0) / (- 0.4 - - 1.0) ; let __h = - 0.4 - - 1.0 ; let __a = 0.5 * __h - (__y2 - __y1) ; let __b = - 0.01 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 0.0 { let __y1 = 0.001 ; let __y2 = 0.003 ; let __t = (__coord - - 0.4) / (0.0 - - 0.4) ; let __h = 0.0 - - 0.4 ; let __a = 0.01 * __h - (__y2 - __y1) ; let __b = - 0.01 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 0.4 { let __y1 = 0.003 ; let __y2 = 0.05 ; let __t = (__coord - 0.0) / (0.4 - 0.0) ; let __h = 0.4 - 0.0 ; let __a = 0.01 * __h - (__y2 - __y1) ; let __b = - 0.094000004 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 1.0 { let __y1 = 0.05 ; let __y2 = 0.060000002 ; let __t = (__coord - 0.4) / (1.0 - 0.4) ; let __h = 1.0 - 0.4 ; let __a = 0.094000004 * __h - (__y2 - __y1) ; let __b = - 0.007000001 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else { f64 :: from (0.060000002 + 0.007000001 * (__coord - 1.0)) } }) as f32 } # [inline] fn spline_helper_22 (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , z : f64) -> f32 { ({ let __coord = (cache . df_overworld__ridges_folded) as f32 ; if __coord < - 1.0 { f64 :: from (- 0.1 + 0.5 * (__coord - - 1.0)) } else if __coord < - 0.4 { let __y1 = - 0.1 ; let __y2 = 0.01 ; let __t = (__coord - - 1.0) / (- 0.4 - - 1.0) ; let __h = - 0.4 - - 1.0 ; let __a = 0.5 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 0.0 { let __y1 = 0.01 ; let __y2 = 0.01 ; let __t = (__coord - - 0.4) / (0.0 - - 0.4) ; let __h = 0.0 - - 0.4 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 0.4 { let __y1 = 0.01 ; let __y2 = 0.03 ; let __t = (__coord - 0.0) / (0.4 - 0.0) ; let __h = 0.4 - 0.0 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.04 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 1.0 { let __y1 = 0.03 ; let __y2 = 0.1 ; let __t = (__coord - 0.4) / (1.0 - 0.4) ; let __h = 1.0 - 0.4 ; let __a = 0.04 * __h - (__y2 - __y1) ; let __b = - 0.049 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else { f64 :: from (0.1 + 0.049 * (__coord - 1.0)) } }) as f32 } # [inline] fn spline_helper_23 (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , z : f64) -> f32 { ({ let __coord = (cache . df_overworld__ridges_folded) as f32 ; if __coord < - 1.0 { f64 :: from (- 0.02 + 0.0 * (__coord - - 1.0)) } else if __coord < - 0.4 { let __y1 = - 0.02 ; let __y2 = - 0.03 ; let __t = (__coord - - 1.0) / (- 0.4 - - 1.0) ; let __h = - 0.4 - - 1.0 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 0.0 { let __y1 = - 0.03 ; let __y2 = - 0.03 ; let __t = (__coord - - 0.4) / (0.0 - - 0.4) ; let __h = 0.0 - - 0.4 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 0.4 { let __y1 = - 0.03 ; let __y2 = 0.03 ; let __t = (__coord - 0.0) / (0.4 - 0.0) ; let __h = 0.4 - 0.0 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.12 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 1.0 { let __y1 = 0.03 ; let __y2 = 0.1 ; let __t = (__coord - 0.4) / (1.0 - 0.4) ; let __h = 1.0 - 0.4 ; let __a = 0.12 * __h - (__y2 - __y1) ; let __b = - 0.049 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else { f64 :: from (0.1 + 0.049 * (__coord - 1.0)) } }) as f32 } # [inline] fn spline_helper_16 (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , z : f64) -> f32 { ({ let __coord = (cache . df_overworld__erosion) as f32 ; if __coord < - 0.85 { f64 :: from (spline_helper_17 (noises , cache , x , z) + 0.0 * (__coord - - 0.85)) } else if __coord < - 0.7 { let __y1 = spline_helper_17 (noises , cache , x , z) ; let __y2 = spline_helper_18 (noises , cache , x , z) ; let __t = (__coord - - 0.85) / (- 0.7 - - 0.85) ; let __h = - 0.7 - - 0.85 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < - 0.4 { let __y1 = spline_helper_18 (noises , cache , x , z) ; let __y2 = spline_helper_19 (noises , cache , x , z) ; let __t = (__coord - - 0.7) / (- 0.4 - - 0.7) ; let __h = - 0.4 - - 0.7 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < - 0.35 { let __y1 = spline_helper_19 (noises , cache , x , z) ; let __y2 = spline_helper_20 (noises , cache , x , z) ; let __t = (__coord - - 0.4) / (- 0.35 - - 0.4) ; let __h = - 0.35 - - 0.4 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < - 0.1 { let __y1 = spline_helper_20 (noises , cache , x , z) ; let __y2 = spline_helper_21 (noises , cache , x , z) ; let __t = (__coord - - 0.35) / (- 0.1 - - 0.35) ; let __h = - 0.1 - - 0.35 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 0.2 { let __y1 = spline_helper_21 (noises , cache , x , z) ; let __y2 = spline_helper_22 (noises , cache , x , z) ; let __t = (__coord - - 0.1) / (0.2 - - 0.1) ; let __h = 0.2 - - 0.1 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 0.7 { let __y1 = spline_helper_22 (noises , cache , x , z) ; let __y2 = spline_helper_23 (noises , cache , x , z) ; let __t = (__coord - 0.2) / (0.7 - 0.2) ; let __h = 0.7 - 0.2 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else { f64 :: from (spline_helper_23 (noises , cache , x , z) + 0.0 * (__coord - 0.7)) } }) as f32 } # [inline] fn spline_helper_25 (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , z : f64) -> f32 { ({ let __coord = (cache . df_overworld__ridges_folded) as f32 ; if __coord < - 1.0 { f64 :: from (0.20235021 + 0.0 * (__coord - - 1.0)) } else if __coord < 0.0 { let __y1 = 0.20235021 ; let __y2 = 0.7161751 ; let __t = (__coord - - 1.0) / (0.0 - - 1.0) ; let __h = 0.0 - - 1.0 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.5138249 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 1.0 { let __y1 = 0.7161751 ; let __y2 = 1.23 ; let __t = (__coord - 0.0) / (1.0 - 0.0) ; let __h = 1.0 - 0.0 ; let __a = 0.5138249 * __h - (__y2 - __y1) ; let __b = - 0.5138249 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else { f64 :: from (1.23 + 0.5138249 * (__coord - 1.0)) } }) as f32 } # [inline] fn spline_helper_26 (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , z : f64) -> f32 { ({ let __coord = (cache . df_overworld__ridges_folded) as f32 ; if __coord < - 1.0 { f64 :: from (0.2 + 0.0 * (__coord - - 1.0)) } else if __coord < 0.0 { let __y1 = 0.2 ; let __y2 = 0.44682026 ; let __t = (__coord - - 1.0) / (0.0 - - 1.0) ; let __h = 0.0 - - 1.0 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.43317974 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 1.0 { let __y1 = 0.44682026 ; let __y2 = 0.88 ; let __t = (__coord - 0.0) / (1.0 - 0.0) ; let __h = 1.0 - 0.0 ; let __a = 0.43317974 * __h - (__y2 - __y1) ; let __b = - 0.43317974 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else { f64 :: from (0.88 + 0.43317974 * (__coord - 1.0)) } }) as f32 } # [inline] fn spline_helper_27 (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , z : f64) -> f32 { ({ let __coord = (cache . df_overworld__ridges_folded) as f32 ; if __coord < - 1.0 { f64 :: from (0.2 + 0.0 * (__coord - - 1.0)) } else if __coord < 0.0 { let __y1 = 0.2 ; let __y2 = 0.30829495 ; let __t = (__coord - - 1.0) / (0.0 - - 1.0) ; let __h = 0.0 - - 1.0 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.3917051 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 1.0 { let __y1 = 0.30829495 ; let __y2 = 0.70000005 ; let __t = (__coord - 0.0) / (1.0 - 0.0) ; let __h = 1.0 - 0.0 ; let __a = 0.3917051 * __h - (__y2 - __y1) ; let __b = - 0.3917051 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else { f64 :: from (0.70000005 + 0.3917051 * (__coord - 1.0)) } }) as f32 } # [inline] fn spline_helper_28 (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , z : f64) -> f32 { ({ let __coord = (cache . df_overworld__ridges_folded) as f32 ; if __coord < - 1.0 { f64 :: from (- 0.25 + 0.5 * (__coord - - 1.0)) } else if __coord < - 0.4 { let __y1 = - 0.25 ; let __y2 = 0.35 ; let __t = (__coord - - 1.0) / (- 0.4 - - 1.0) ; let __h = - 0.4 - - 1.0 ; let __a = 0.5 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 0.0 { let __y1 = 0.35 ; let __y2 = 0.35 ; let __t = (__coord - - 0.4) / (0.0 - - 0.4) ; let __h = 0.0 - - 0.4 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 0.4 { let __y1 = 0.35 ; let __y2 = 0.35 ; let __t = (__coord - 0.0) / (0.4 - 0.0) ; let __h = 0.4 - 0.0 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 1.0 { let __y1 = 0.35 ; let __y2 = 0.42000002 ; let __t = (__coord - 0.4) / (1.0 - 0.4) ; let __h = 1.0 - 0.4 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.049000014 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else { f64 :: from (0.42000002 + 0.049000014 * (__coord - 1.0)) } }) as f32 } # [inline] fn spline_helper_29 (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , z : f64) -> f32 { ({ let __coord = (cache . df_overworld__ridges_folded) as f32 ; if __coord < - 1.0 { f64 :: from (- 0.1 + 0.5 * (__coord - - 1.0)) } else if __coord < - 0.4 { let __y1 = - 0.1 ; let __y2 = 0.0069999998 ; let __t = (__coord - - 1.0) / (- 0.4 - - 1.0) ; let __h = - 0.4 - - 1.0 ; let __a = 0.5 * __h - (__y2 - __y1) ; let __b = - 0.07 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 0.0 { let __y1 = 0.0069999998 ; let __y2 = 0.021 ; let __t = (__coord - - 0.4) / (0.0 - - 0.4) ; let __h = 0.0 - - 0.4 ; let __a = 0.07 * __h - (__y2 - __y1) ; let __b = - 0.07 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 0.4 { let __y1 = 0.021 ; let __y2 = 0.35 ; let __t = (__coord - 0.0) / (0.4 - 0.0) ; let __h = 0.4 - 0.0 ; let __a = 0.07 * __h - (__y2 - __y1) ; let __b = - 0.658 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 1.0 { let __y1 = 0.35 ; let __y2 = 0.42000002 ; let __t = (__coord - 0.4) / (1.0 - 0.4) ; let __h = 1.0 - 0.4 ; let __a = 0.658 * __h - (__y2 - __y1) ; let __b = - 0.049000014 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else { f64 :: from (0.42000002 + 0.049000014 * (__coord - 1.0)) } }) as f32 } # [inline] fn spline_helper_30 (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , z : f64) -> f32 { ({ let __coord = (cache . df_overworld__ridges_folded) as f32 ; if __coord < - 1.0 { f64 :: from (- 0.1 + 0.5 * (__coord - - 1.0)) } else if __coord < - 0.4 { let __y1 = - 0.1 ; let __y2 = 0.01 ; let __t = (__coord - - 1.0) / (- 0.4 - - 1.0) ; let __h = - 0.4 - - 1.0 ; let __a = 0.5 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 0.0 { let __y1 = 0.01 ; let __y2 = 0.01 ; let __t = (__coord - - 0.4) / (0.0 - - 0.4) ; let __h = 0.0 - - 0.4 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 0.4 { let __y1 = 0.01 ; let __y2 = 0.03 ; let __t = (__coord - 0.0) / (0.4 - 0.0) ; let __h = 0.4 - 0.0 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.04 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 1.0 { let __y1 = 0.03 ; let __y2 = 0.1 ; let __t = (__coord - 0.4) / (1.0 - 0.4) ; let __h = 1.0 - 0.4 ; let __a = 0.04 * __h - (__y2 - __y1) ; let __b = - 0.049 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else { f64 :: from (0.1 + 0.049 * (__coord - 1.0)) } }) as f32 } # [inline] fn spline_helper_31 (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , z : f64) -> f32 { ({ let __coord = (cache . df_overworld__ridges_folded) as f32 ; if __coord < - 1.0 { f64 :: from (- 0.1 + 0.5 * (__coord - - 1.0)) } else if __coord < - 0.4 { let __y1 = - 0.1 ; let __y2 = 0.01 ; let __t = (__coord - - 1.0) / (- 0.4 - - 1.0) ; let __h = - 0.4 - - 1.0 ; let __a = 0.5 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 0.0 { let __y1 = 0.01 ; let __y2 = 0.01 ; let __t = (__coord - - 0.4) / (0.0 - - 0.4) ; let __h = 0.0 - - 0.4 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 0.4 { let __y1 = 0.01 ; let __y2 = 0.03 ; let __t = (__coord - 0.0) / (0.4 - 0.0) ; let __h = 0.4 - 0.0 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.04 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 1.0 { let __y1 = 0.03 ; let __y2 = 0.1 ; let __t = (__coord - 0.4) / (1.0 - 0.4) ; let __h = 1.0 - 0.4 ; let __a = 0.04 * __h - (__y2 - __y1) ; let __b = - 0.049 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else { f64 :: from (0.1 + 0.049 * (__coord - 1.0)) } }) as f32 } # [inline] fn spline_helper_33 (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , z : f64) -> f32 { ({ let __coord = (cache . df_overworld__ridges_folded) as f32 ; if __coord < - 1.0 { f64 :: from (- 0.1 + 0.5 * (__coord - - 1.0)) } else if __coord < - 0.4 { let __y1 = - 0.1 ; let __y2 = 0.01 ; let __t = (__coord - - 1.0) / (- 0.4 - - 1.0) ; let __h = - 0.4 - - 1.0 ; let __a = 0.5 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 0.0 { let __y1 = 0.01 ; let __y2 = 0.01 ; let __t = (__coord - - 0.4) / (0.0 - - 0.4) ; let __h = 0.0 - - 0.4 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 0.4 { let __y1 = 0.01 ; let __y2 = 0.03 ; let __t = (__coord - 0.0) / (0.4 - 0.0) ; let __h = 0.4 - 0.0 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.04 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 1.0 { let __y1 = 0.03 ; let __y2 = 0.1 ; let __t = (__coord - 0.4) / (1.0 - 0.4) ; let __h = 1.0 - 0.4 ; let __a = 0.04 * __h - (__y2 - __y1) ; let __b = - 0.049 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else { f64 :: from (0.1 + 0.049 * (__coord - 1.0)) } }) as f32 } # [inline] fn spline_helper_32 (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , z : f64) -> f32 { ({ let __coord = (cache . df_overworld__ridges_folded) as f32 ; if __coord < - 1.0 { f64 :: from (- 0.1 + 0.0 * (__coord - - 1.0)) } else if __coord < - 0.4 { let __y1 = - 0.1 ; let __y2 = spline_helper_33 (noises , cache , x , z) ; let __t = (__coord - - 1.0) / (- 0.4 - - 1.0) ; let __h = - 0.4 - - 1.0 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 0.0 { let __y1 = spline_helper_33 (noises , cache , x , z) ; let __y2 = 0.17 ; let __t = (__coord - - 0.4) / (0.0 - - 0.4) ; let __h = 0.0 - - 0.4 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else { f64 :: from (0.17 + 0.0 * (__coord - 0.0)) } }) as f32 } # [inline] fn spline_helper_35 (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , z : f64) -> f32 { ({ let __coord = (cache . df_overworld__ridges_folded) as f32 ; if __coord < - 1.0 { f64 :: from (- 0.1 + 0.5 * (__coord - - 1.0)) } else if __coord < - 0.4 { let __y1 = - 0.1 ; let __y2 = 0.01 ; let __t = (__coord - - 1.0) / (- 0.4 - - 1.0) ; let __h = - 0.4 - - 1.0 ; let __a = 0.5 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 0.0 { let __y1 = 0.01 ; let __y2 = 0.01 ; let __t = (__coord - - 0.4) / (0.0 - - 0.4) ; let __h = 0.0 - - 0.4 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 0.4 { let __y1 = 0.01 ; let __y2 = 0.03 ; let __t = (__coord - 0.0) / (0.4 - 0.0) ; let __h = 0.4 - 0.0 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.04 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 1.0 { let __y1 = 0.03 ; let __y2 = 0.1 ; let __t = (__coord - 0.4) / (1.0 - 0.4) ; let __h = 1.0 - 0.4 ; let __a = 0.04 * __h - (__y2 - __y1) ; let __b = - 0.049 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else { f64 :: from (0.1 + 0.049 * (__coord - 1.0)) } }) as f32 } # [inline] fn spline_helper_34 (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , z : f64) -> f32 { ({ let __coord = (cache . df_overworld__ridges_folded) as f32 ; if __coord < - 1.0 { f64 :: from (- 0.1 + 0.0 * (__coord - - 1.0)) } else if __coord < - 0.4 { let __y1 = - 0.1 ; let __y2 = spline_helper_35 (noises , cache , x , z) ; let __t = (__coord - - 1.0) / (- 0.4 - - 1.0) ; let __h = - 0.4 - - 1.0 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 0.0 { let __y1 = spline_helper_35 (noises , cache , x , z) ; let __y2 = 0.17 ; let __t = (__coord - - 0.4) / (0.0 - - 0.4) ; let __h = 0.0 - - 0.4 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else { f64 :: from (0.17 + 0.0 * (__coord - 0.0)) } }) as f32 } # [inline] fn spline_helper_36 (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , z : f64) -> f32 { ({ let __coord = (cache . df_overworld__ridges_folded) as f32 ; if __coord < - 1.0 { f64 :: from (- 0.1 + 0.5 * (__coord - - 1.0)) } else if __coord < - 0.4 { let __y1 = - 0.1 ; let __y2 = 0.01 ; let __t = (__coord - - 1.0) / (- 0.4 - - 1.0) ; let __h = - 0.4 - - 1.0 ; let __a = 0.5 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 0.0 { let __y1 = 0.01 ; let __y2 = 0.01 ; let __t = (__coord - - 0.4) / (0.0 - - 0.4) ; let __h = 0.0 - - 0.4 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 0.4 { let __y1 = 0.01 ; let __y2 = 0.03 ; let __t = (__coord - 0.0) / (0.4 - 0.0) ; let __h = 0.4 - 0.0 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.04 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 1.0 { let __y1 = 0.03 ; let __y2 = 0.1 ; let __t = (__coord - 0.4) / (1.0 - 0.4) ; let __h = 1.0 - 0.4 ; let __a = 0.04 * __h - (__y2 - __y1) ; let __b = - 0.049 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else { f64 :: from (0.1 + 0.049 * (__coord - 1.0)) } }) as f32 } # [inline] fn spline_helper_37 (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , z : f64) -> f32 { ({ let __coord = (cache . df_overworld__ridges_folded) as f32 ; if __coord < - 1.0 { f64 :: from (- 0.02 + 0.0 * (__coord - - 1.0)) } else if __coord < - 0.4 { let __y1 = - 0.02 ; let __y2 = - 0.03 ; let __t = (__coord - - 1.0) / (- 0.4 - - 1.0) ; let __h = - 0.4 - - 1.0 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 0.0 { let __y1 = - 0.03 ; let __y2 = - 0.03 ; let __t = (__coord - - 0.4) / (0.0 - - 0.4) ; let __h = 0.0 - - 0.4 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 0.4 { let __y1 = - 0.03 ; let __y2 = 0.03 ; let __t = (__coord - 0.0) / (0.4 - 0.0) ; let __h = 0.4 - 0.0 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.12 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 1.0 { let __y1 = 0.03 ; let __y2 = 0.1 ; let __t = (__coord - 0.4) / (1.0 - 0.4) ; let __h = 1.0 - 0.4 ; let __a = 0.12 * __h - (__y2 - __y1) ; let __b = - 0.049 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else { f64 :: from (0.1 + 0.049 * (__coord - 1.0)) } }) as f32 } # [inline] fn spline_helper_24 (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , z : f64) -> f32 { ({ let __coord = (cache . df_overworld__erosion) as f32 ; if __coord < - 0.85 { f64 :: from (spline_helper_25 (noises , cache , x , z) + 0.0 * (__coord - - 0.85)) } else if __coord < - 0.7 { let __y1 = spline_helper_25 (noises , cache , x , z) ; let __y2 = spline_helper_26 (noises , cache , x , z) ; let __t = (__coord - - 0.85) / (- 0.7 - - 0.85) ; let __h = - 0.7 - - 0.85 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < - 0.4 { let __y1 = spline_helper_26 (noises , cache , x , z) ; let __y2 = spline_helper_27 (noises , cache , x , z) ; let __t = (__coord - - 0.7) / (- 0.4 - - 0.7) ; let __h = - 0.4 - - 0.7 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < - 0.35 { let __y1 = spline_helper_27 (noises , cache , x , z) ; let __y2 = spline_helper_28 (noises , cache , x , z) ; let __t = (__coord - - 0.4) / (- 0.35 - - 0.4) ; let __h = - 0.35 - - 0.4 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < - 0.1 { let __y1 = spline_helper_28 (noises , cache , x , z) ; let __y2 = spline_helper_29 (noises , cache , x , z) ; let __t = (__coord - - 0.35) / (- 0.1 - - 0.35) ; let __h = - 0.1 - - 0.35 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 0.2 { let __y1 = spline_helper_29 (noises , cache , x , z) ; let __y2 = spline_helper_30 (noises , cache , x , z) ; let __t = (__coord - - 0.1) / (0.2 - - 0.1) ; let __h = 0.2 - - 0.1 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 0.4 { let __y1 = spline_helper_30 (noises , cache , x , z) ; let __y2 = spline_helper_31 (noises , cache , x , z) ; let __t = (__coord - 0.2) / (0.4 - 0.2) ; let __h = 0.4 - 0.2 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 0.45 { let __y1 = spline_helper_31 (noises , cache , x , z) ; let __y2 = spline_helper_32 (noises , cache , x , z) ; let __t = (__coord - 0.4) / (0.45 - 0.4) ; let __h = 0.45 - 0.4 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 0.55 { let __y1 = spline_helper_32 (noises , cache , x , z) ; let __y2 = spline_helper_34 (noises , cache , x , z) ; let __t = (__coord - 0.45) / (0.55 - 0.45) ; let __h = 0.55 - 0.45 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 0.58 { let __y1 = spline_helper_34 (noises , cache , x , z) ; let __y2 = spline_helper_36 (noises , cache , x , z) ; let __t = (__coord - 0.55) / (0.58 - 0.55) ; let __h = 0.58 - 0.55 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 0.7 { let __y1 = spline_helper_36 (noises , cache , x , z) ; let __y2 = spline_helper_37 (noises , cache , x , z) ; let __t = (__coord - 0.58) / (0.7 - 0.58) ; let __h = 0.7 - 0.58 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else { f64 :: from (spline_helper_37 (noises , cache , x , z) + 0.0 * (__coord - 0.7)) } }) as f32 } # [inline] fn spline_helper_39 (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , z : f64) -> f32 { ({ let __coord = (cache . df_overworld__ridges_folded) as f32 ; if __coord < - 1.0 { f64 :: from (0.34792626 + 0.0 * (__coord - - 1.0)) } else if __coord < 0.0 { let __y1 = 0.34792626 ; let __y2 = 0.9239631 ; let __t = (__coord - - 1.0) / (0.0 - - 1.0) ; let __h = 0.0 - - 1.0 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.5760369 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 1.0 { let __y1 = 0.9239631 ; let __y2 = 1.5 ; let __t = (__coord - 0.0) / (1.0 - 0.0) ; let __h = 1.0 - 0.0 ; let __a = 0.5760369 * __h - (__y2 - __y1) ; let __b = - 0.5760369 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else { f64 :: from (1.5 + 0.5760369 * (__coord - 1.0)) } }) as f32 } # [inline] fn spline_helper_40 (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , z : f64) -> f32 { ({ let __coord = (cache . df_overworld__ridges_folded) as f32 ; if __coord < - 1.0 { f64 :: from (0.2 + 0.0 * (__coord - - 1.0)) } else if __coord < 0.0 { let __y1 = 0.2 ; let __y2 = 0.5391705 ; let __t = (__coord - - 1.0) / (0.0 - - 1.0) ; let __h = 0.0 - - 1.0 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.4608295 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 1.0 { let __y1 = 0.5391705 ; let __y2 = 1.0 ; let __t = (__coord - 0.0) / (1.0 - 0.0) ; let __h = 1.0 - 0.0 ; let __a = 0.4608295 * __h - (__y2 - __y1) ; let __b = - 0.4608295 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else { f64 :: from (1.0 + 0.4608295 * (__coord - 1.0)) } }) as f32 } # [inline] fn spline_helper_41 (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , z : f64) -> f32 { ({ let __coord = (cache . df_overworld__ridges_folded) as f32 ; if __coord < - 1.0 { f64 :: from (0.2 + 0.0 * (__coord - - 1.0)) } else if __coord < 0.0 { let __y1 = 0.2 ; let __y2 = 0.5391705 ; let __t = (__coord - - 1.0) / (0.0 - - 1.0) ; let __h = 0.0 - - 1.0 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.4608295 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 1.0 { let __y1 = 0.5391705 ; let __y2 = 1.0 ; let __t = (__coord - 0.0) / (1.0 - 0.0) ; let __h = 1.0 - 0.0 ; let __a = 0.4608295 * __h - (__y2 - __y1) ; let __b = - 0.4608295 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else { f64 :: from (1.0 + 0.4608295 * (__coord - 1.0)) } }) as f32 } # [inline] fn spline_helper_42 (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , z : f64) -> f32 { ({ let __coord = (cache . df_overworld__ridges_folded) as f32 ; if __coord < - 1.0 { f64 :: from (- 0.2 + 0.5 * (__coord - - 1.0)) } else if __coord < - 0.4 { let __y1 = - 0.2 ; let __y2 = 0.5 ; let __t = (__coord - - 1.0) / (- 0.4 - - 1.0) ; let __h = - 0.4 - - 1.0 ; let __a = 0.5 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 0.0 { let __y1 = 0.5 ; let __y2 = 0.5 ; let __t = (__coord - - 0.4) / (0.0 - - 0.4) ; let __h = 0.0 - - 0.4 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 0.4 { let __y1 = 0.5 ; let __y2 = 0.5 ; let __t = (__coord - 0.0) / (0.4 - 0.0) ; let __h = 0.4 - 0.0 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 1.0 { let __y1 = 0.5 ; let __y2 = 0.6 ; let __t = (__coord - 0.4) / (1.0 - 0.4) ; let __h = 1.0 - 0.4 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.070000015 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else { f64 :: from (0.6 + 0.070000015 * (__coord - 1.0)) } }) as f32 } # [inline] fn spline_helper_43 (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , z : f64) -> f32 { ({ let __coord = (cache . df_overworld__ridges_folded) as f32 ; if __coord < - 1.0 { f64 :: from (- 0.05 + 0.5 * (__coord - - 1.0)) } else if __coord < - 0.4 { let __y1 = - 0.05 ; let __y2 = 0.01 ; let __t = (__coord - - 1.0) / (- 0.4 - - 1.0) ; let __h = - 0.4 - - 1.0 ; let __a = 0.5 * __h - (__y2 - __y1) ; let __b = - 0.099999994 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 0.0 { let __y1 = 0.01 ; let __y2 = 0.03 ; let __t = (__coord - - 0.4) / (0.0 - - 0.4) ; let __h = 0.0 - - 0.4 ; let __a = 0.099999994 * __h - (__y2 - __y1) ; let __b = - 0.099999994 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 0.4 { let __y1 = 0.03 ; let __y2 = 0.5 ; let __t = (__coord - 0.0) / (0.4 - 0.0) ; let __h = 0.4 - 0.0 ; let __a = 0.099999994 * __h - (__y2 - __y1) ; let __b = - 0.94 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 1.0 { let __y1 = 0.5 ; let __y2 = 0.6 ; let __t = (__coord - 0.4) / (1.0 - 0.4) ; let __h = 1.0 - 0.4 ; let __a = 0.94 * __h - (__y2 - __y1) ; let __b = - 0.070000015 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else { f64 :: from (0.6 + 0.070000015 * (__coord - 1.0)) } }) as f32 } # [inline] fn spline_helper_44 (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , z : f64) -> f32 { ({ let __coord = (cache . df_overworld__ridges_folded) as f32 ; if __coord < - 1.0 { f64 :: from (- 0.05 + 0.5 * (__coord - - 1.0)) } else if __coord < - 0.4 { let __y1 = - 0.05 ; let __y2 = 0.01 ; let __t = (__coord - - 1.0) / (- 0.4 - - 1.0) ; let __h = - 0.4 - - 1.0 ; let __a = 0.5 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 0.0 { let __y1 = 0.01 ; let __y2 = 0.01 ; let __t = (__coord - - 0.4) / (0.0 - - 0.4) ; let __h = 0.0 - - 0.4 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 0.4 { let __y1 = 0.01 ; let __y2 = 0.03 ; let __t = (__coord - 0.0) / (0.4 - 0.0) ; let __h = 0.4 - 0.0 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.04 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 1.0 { let __y1 = 0.03 ; let __y2 = 0.1 ; let __t = (__coord - 0.4) / (1.0 - 0.4) ; let __h = 1.0 - 0.4 ; let __a = 0.04 * __h - (__y2 - __y1) ; let __b = - 0.049 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else { f64 :: from (0.1 + 0.049 * (__coord - 1.0)) } }) as f32 } # [inline] fn spline_helper_45 (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , z : f64) -> f32 { ({ let __coord = (cache . df_overworld__ridges_folded) as f32 ; if __coord < - 1.0 { f64 :: from (- 0.05 + 0.5 * (__coord - - 1.0)) } else if __coord < - 0.4 { let __y1 = - 0.05 ; let __y2 = 0.01 ; let __t = (__coord - - 1.0) / (- 0.4 - - 1.0) ; let __h = - 0.4 - - 1.0 ; let __a = 0.5 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 0.0 { let __y1 = 0.01 ; let __y2 = 0.01 ; let __t = (__coord - - 0.4) / (0.0 - - 0.4) ; let __h = 0.0 - - 0.4 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 0.4 { let __y1 = 0.01 ; let __y2 = 0.03 ; let __t = (__coord - 0.0) / (0.4 - 0.0) ; let __h = 0.4 - 0.0 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.04 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 1.0 { let __y1 = 0.03 ; let __y2 = 0.1 ; let __t = (__coord - 0.4) / (1.0 - 0.4) ; let __h = 1.0 - 0.4 ; let __a = 0.04 * __h - (__y2 - __y1) ; let __b = - 0.049 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else { f64 :: from (0.1 + 0.049 * (__coord - 1.0)) } }) as f32 } # [inline] fn spline_helper_47 (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , z : f64) -> f32 { ({ let __coord = (cache . df_overworld__ridges_folded) as f32 ; if __coord < - 1.0 { f64 :: from (- 0.05 + 0.5 * (__coord - - 1.0)) } else if __coord < - 0.4 { let __y1 = - 0.05 ; let __y2 = 0.01 ; let __t = (__coord - - 1.0) / (- 0.4 - - 1.0) ; let __h = - 0.4 - - 1.0 ; let __a = 0.5 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 0.0 { let __y1 = 0.01 ; let __y2 = 0.01 ; let __t = (__coord - - 0.4) / (0.0 - - 0.4) ; let __h = 0.0 - - 0.4 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 0.4 { let __y1 = 0.01 ; let __y2 = 0.03 ; let __t = (__coord - 0.0) / (0.4 - 0.0) ; let __h = 0.4 - 0.0 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.04 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 1.0 { let __y1 = 0.03 ; let __y2 = 0.1 ; let __t = (__coord - 0.4) / (1.0 - 0.4) ; let __h = 1.0 - 0.4 ; let __a = 0.04 * __h - (__y2 - __y1) ; let __b = - 0.049 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else { f64 :: from (0.1 + 0.049 * (__coord - 1.0)) } }) as f32 } # [inline] fn spline_helper_46 (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , z : f64) -> f32 { ({ let __coord = (cache . df_overworld__ridges_folded) as f32 ; if __coord < - 1.0 { f64 :: from (- 0.05 + 0.0 * (__coord - - 1.0)) } else if __coord < - 0.4 { let __y1 = - 0.05 ; let __y2 = spline_helper_47 (noises , cache , x , z) ; let __t = (__coord - - 1.0) / (- 0.4 - - 1.0) ; let __h = - 0.4 - - 1.0 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 0.0 { let __y1 = spline_helper_47 (noises , cache , x , z) ; let __y2 = 0.17 ; let __t = (__coord - - 0.4) / (0.0 - - 0.4) ; let __h = 0.0 - - 0.4 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else { f64 :: from (0.17 + 0.0 * (__coord - 0.0)) } }) as f32 } # [inline] fn spline_helper_49 (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , z : f64) -> f32 { ({ let __coord = (cache . df_overworld__ridges_folded) as f32 ; if __coord < - 1.0 { f64 :: from (- 0.05 + 0.5 * (__coord - - 1.0)) } else if __coord < - 0.4 { let __y1 = - 0.05 ; let __y2 = 0.01 ; let __t = (__coord - - 1.0) / (- 0.4 - - 1.0) ; let __h = - 0.4 - - 1.0 ; let __a = 0.5 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 0.0 { let __y1 = 0.01 ; let __y2 = 0.01 ; let __t = (__coord - - 0.4) / (0.0 - - 0.4) ; let __h = 0.0 - - 0.4 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 0.4 { let __y1 = 0.01 ; let __y2 = 0.03 ; let __t = (__coord - 0.0) / (0.4 - 0.0) ; let __h = 0.4 - 0.0 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.04 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 1.0 { let __y1 = 0.03 ; let __y2 = 0.1 ; let __t = (__coord - 0.4) / (1.0 - 0.4) ; let __h = 1.0 - 0.4 ; let __a = 0.04 * __h - (__y2 - __y1) ; let __b = - 0.049 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else { f64 :: from (0.1 + 0.049 * (__coord - 1.0)) } }) as f32 } # [inline] fn spline_helper_48 (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , z : f64) -> f32 { ({ let __coord = (cache . df_overworld__ridges_folded) as f32 ; if __coord < - 1.0 { f64 :: from (- 0.05 + 0.0 * (__coord - - 1.0)) } else if __coord < - 0.4 { let __y1 = - 0.05 ; let __y2 = spline_helper_49 (noises , cache , x , z) ; let __t = (__coord - - 1.0) / (- 0.4 - - 1.0) ; let __h = - 0.4 - - 1.0 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 0.0 { let __y1 = spline_helper_49 (noises , cache , x , z) ; let __y2 = 0.17 ; let __t = (__coord - - 0.4) / (0.0 - - 0.4) ; let __h = 0.0 - - 0.4 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else { f64 :: from (0.17 + 0.0 * (__coord - 0.0)) } }) as f32 } # [inline] fn spline_helper_50 (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , z : f64) -> f32 { ({ let __coord = (cache . df_overworld__ridges_folded) as f32 ; if __coord < - 1.0 { f64 :: from (- 0.05 + 0.5 * (__coord - - 1.0)) } else if __coord < - 0.4 { let __y1 = - 0.05 ; let __y2 = 0.01 ; let __t = (__coord - - 1.0) / (- 0.4 - - 1.0) ; let __h = - 0.4 - - 1.0 ; let __a = 0.5 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 0.0 { let __y1 = 0.01 ; let __y2 = 0.01 ; let __t = (__coord - - 0.4) / (0.0 - - 0.4) ; let __h = 0.0 - - 0.4 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 0.4 { let __y1 = 0.01 ; let __y2 = 0.03 ; let __t = (__coord - 0.0) / (0.4 - 0.0) ; let __h = 0.4 - 0.0 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.04 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 1.0 { let __y1 = 0.03 ; let __y2 = 0.1 ; let __t = (__coord - 0.4) / (1.0 - 0.4) ; let __h = 1.0 - 0.4 ; let __a = 0.04 * __h - (__y2 - __y1) ; let __b = - 0.049 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else { f64 :: from (0.1 + 0.049 * (__coord - 1.0)) } }) as f32 } # [inline] fn spline_helper_51 (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , z : f64) -> f32 { ({ let __coord = (cache . df_overworld__ridges_folded) as f32 ; if __coord < - 1.0 { f64 :: from (- 0.02 + 0.015 * (__coord - - 1.0)) } else if __coord < - 0.4 { let __y1 = - 0.02 ; let __y2 = 0.01 ; let __t = (__coord - - 1.0) / (- 0.4 - - 1.0) ; let __h = - 0.4 - - 1.0 ; let __a = 0.015 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 0.0 { let __y1 = 0.01 ; let __y2 = 0.01 ; let __t = (__coord - - 0.4) / (0.0 - - 0.4) ; let __h = 0.0 - - 0.4 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 0.4 { let __y1 = 0.01 ; let __y2 = 0.03 ; let __t = (__coord - 0.0) / (0.4 - 0.0) ; let __h = 0.4 - 0.0 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.04 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 1.0 { let __y1 = 0.03 ; let __y2 = 0.1 ; let __t = (__coord - 0.4) / (1.0 - 0.4) ; let __h = 1.0 - 0.4 ; let __a = 0.04 * __h - (__y2 - __y1) ; let __b = - 0.049 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else { f64 :: from (0.1 + 0.049 * (__coord - 1.0)) } }) as f32 } # [inline] fn spline_helper_38 (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , z : f64) -> f32 { ({ let __coord = (cache . df_overworld__erosion) as f32 ; if __coord < - 0.85 { f64 :: from (spline_helper_39 (noises , cache , x , z) + 0.0 * (__coord - - 0.85)) } else if __coord < - 0.7 { let __y1 = spline_helper_39 (noises , cache , x , z) ; let __y2 = spline_helper_40 (noises , cache , x , z) ; let __t = (__coord - - 0.85) / (- 0.7 - - 0.85) ; let __h = - 0.7 - - 0.85 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < - 0.4 { let __y1 = spline_helper_40 (noises , cache , x , z) ; let __y2 = spline_helper_41 (noises , cache , x , z) ; let __t = (__coord - - 0.7) / (- 0.4 - - 0.7) ; let __h = - 0.4 - - 0.7 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < - 0.35 { let __y1 = spline_helper_41 (noises , cache , x , z) ; let __y2 = spline_helper_42 (noises , cache , x , z) ; let __t = (__coord - - 0.4) / (- 0.35 - - 0.4) ; let __h = - 0.35 - - 0.4 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < - 0.1 { let __y1 = spline_helper_42 (noises , cache , x , z) ; let __y2 = spline_helper_43 (noises , cache , x , z) ; let __t = (__coord - - 0.35) / (- 0.1 - - 0.35) ; let __h = - 0.1 - - 0.35 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 0.2 { let __y1 = spline_helper_43 (noises , cache , x , z) ; let __y2 = spline_helper_44 (noises , cache , x , z) ; let __t = (__coord - - 0.1) / (0.2 - - 0.1) ; let __h = 0.2 - - 0.1 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 0.4 { let __y1 = spline_helper_44 (noises , cache , x , z) ; let __y2 = spline_helper_45 (noises , cache , x , z) ; let __t = (__coord - 0.2) / (0.4 - 0.2) ; let __h = 0.4 - 0.2 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 0.45 { let __y1 = spline_helper_45 (noises , cache , x , z) ; let __y2 = spline_helper_46 (noises , cache , x , z) ; let __t = (__coord - 0.4) / (0.45 - 0.4) ; let __h = 0.45 - 0.4 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 0.55 { let __y1 = spline_helper_46 (noises , cache , x , z) ; let __y2 = spline_helper_48 (noises , cache , x , z) ; let __t = (__coord - 0.45) / (0.55 - 0.45) ; let __h = 0.55 - 0.45 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 0.58 { let __y1 = spline_helper_48 (noises , cache , x , z) ; let __y2 = spline_helper_50 (noises , cache , x , z) ; let __t = (__coord - 0.55) / (0.58 - 0.55) ; let __h = 0.58 - 0.55 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 0.7 { let __y1 = spline_helper_50 (noises , cache , x , z) ; let __y2 = spline_helper_51 (noises , cache , x , z) ; let __t = (__coord - 0.58) / (0.7 - 0.58) ; let __h = 0.7 - 0.58 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else { f64 :: from (spline_helper_51 (noises , cache , x , z) + 0.0 * (__coord - 0.7)) } }) as f32 } # [inline] fn spline_helper_53 (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , z : f64) -> f32 { ({ let __coord = (cache . df_overworld__ridges) as f32 ; if __coord < - 0.2 { f64 :: from (6.3 + 0.0 * (__coord - - 0.2)) } else if __coord < 0.2 { let __y1 = 6.3 ; let __y2 = 6.25 ; let __t = (__coord - - 0.2) / (0.2 - - 0.2) ; let __h = 0.2 - - 0.2 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else { f64 :: from (6.25 + 0.0 * (__coord - 0.2)) } }) as f32 } # [inline] fn spline_helper_54 (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , z : f64) -> f32 { ({ let __coord = (cache . df_overworld__ridges) as f32 ; if __coord < - 0.05 { f64 :: from (6.3 + 0.0 * (__coord - - 0.05)) } else if __coord < 0.05 { let __y1 = 6.3 ; let __y2 = 2.67 ; let __t = (__coord - - 0.05) / (0.05 - - 0.05) ; let __h = 0.05 - - 0.05 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else { f64 :: from (2.67 + 0.0 * (__coord - 0.05)) } }) as f32 } # [inline] fn spline_helper_55 (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , z : f64) -> f32 { ({ let __coord = (cache . df_overworld__ridges) as f32 ; if __coord < - 0.2 { f64 :: from (6.3 + 0.0 * (__coord - - 0.2)) } else if __coord < 0.2 { let __y1 = 6.3 ; let __y2 = 6.25 ; let __t = (__coord - - 0.2) / (0.2 - - 0.2) ; let __h = 0.2 - - 0.2 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else { f64 :: from (6.25 + 0.0 * (__coord - 0.2)) } }) as f32 } # [inline] fn spline_helper_56 (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , z : f64) -> f32 { ({ let __coord = (cache . df_overworld__ridges) as f32 ; if __coord < - 0.2 { f64 :: from (6.3 + 0.0 * (__coord - - 0.2)) } else if __coord < 0.2 { let __y1 = 6.3 ; let __y2 = 6.25 ; let __t = (__coord - - 0.2) / (0.2 - - 0.2) ; let __h = 0.2 - - 0.2 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else { f64 :: from (6.25 + 0.0 * (__coord - 0.2)) } }) as f32 } # [inline] fn spline_helper_57 (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , z : f64) -> f32 { ({ let __coord = (cache . df_overworld__ridges) as f32 ; if __coord < - 0.05 { f64 :: from (2.67 + 0.0 * (__coord - - 0.05)) } else if __coord < 0.05 { let __y1 = 2.67 ; let __y2 = 6.3 ; let __t = (__coord - - 0.05) / (0.05 - - 0.05) ; let __h = 0.05 - - 0.05 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else { f64 :: from (6.3 + 0.0 * (__coord - 0.05)) } }) as f32 } # [inline] fn spline_helper_58 (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , z : f64) -> f32 { ({ let __coord = (cache . df_overworld__ridges) as f32 ; if __coord < - 0.2 { f64 :: from (6.3 + 0.0 * (__coord - - 0.2)) } else if __coord < 0.2 { let __y1 = 6.3 ; let __y2 = 6.25 ; let __t = (__coord - - 0.2) / (0.2 - - 0.2) ; let __h = 0.2 - - 0.2 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else { f64 :: from (6.25 + 0.0 * (__coord - 0.2)) } }) as f32 } # [inline] fn spline_helper_60 (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , z : f64) -> f32 { ({ let __coord = (cache . df_overworld__ridges) as f32 ; if __coord < 0.0 { f64 :: from (6.25 + 0.0 * (__coord - 0.0)) } else if __coord < 0.1 { let __y1 = 6.25 ; let __y2 = 0.625 ; let __t = (__coord - 0.0) / (0.1 - 0.0) ; let __h = 0.1 - 0.0 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else { f64 :: from (0.625 + 0.0 * (__coord - 0.1)) } }) as f32 } # [inline] fn spline_helper_59 (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , z : f64) -> f32 { ({ let __coord = (cache . df_overworld__ridges_folded) as f32 ; if __coord < - 0.9 { f64 :: from (6.25 + 0.0 * (__coord - - 0.9)) } else if __coord < - 0.69 { let __y1 = 6.25 ; let __y2 = spline_helper_60 (noises , cache , x , z) ; let __t = (__coord - - 0.9) / (- 0.69 - - 0.9) ; let __h = - 0.69 - - 0.9 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else { f64 :: from (spline_helper_60 (noises , cache , x , z) + 0.0 * (__coord - - 0.69)) } }) as f32 } # [inline] fn spline_helper_62 (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , z : f64) -> f32 { ({ let __coord = (cache . df_overworld__ridges) as f32 ; if __coord < 0.0 { f64 :: from (6.25 + 0.0 * (__coord - 0.0)) } else if __coord < 0.1 { let __y1 = 6.25 ; let __y2 = 0.625 ; let __t = (__coord - 0.0) / (0.1 - 0.0) ; let __h = 0.1 - 0.0 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else { f64 :: from (0.625 + 0.0 * (__coord - 0.1)) } }) as f32 } # [inline] fn spline_helper_61 (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , z : f64) -> f32 { ({ let __coord = (cache . df_overworld__ridges_folded) as f32 ; if __coord < - 0.9 { f64 :: from (6.25 + 0.0 * (__coord - - 0.9)) } else if __coord < - 0.69 { let __y1 = 6.25 ; let __y2 = spline_helper_62 (noises , cache , x , z) ; let __t = (__coord - - 0.9) / (- 0.69 - - 0.9) ; let __h = - 0.69 - - 0.9 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else { f64 :: from (spline_helper_62 (noises , cache , x , z) + 0.0 * (__coord - - 0.69)) } }) as f32 } # [inline] fn spline_helper_52 (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , z : f64) -> f32 { ({ let __coord = (cache . df_overworld__erosion) as f32 ; if __coord < - 0.6 { f64 :: from (spline_helper_53 (noises , cache , x , z) + 0.0 * (__coord - - 0.6)) } else if __coord < - 0.5 { let __y1 = spline_helper_53 (noises , cache , x , z) ; let __y2 = spline_helper_54 (noises , cache , x , z) ; let __t = (__coord - - 0.6) / (- 0.5 - - 0.6) ; let __h = - 0.5 - - 0.6 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < - 0.35 { let __y1 = spline_helper_54 (noises , cache , x , z) ; let __y2 = spline_helper_55 (noises , cache , x , z) ; let __t = (__coord - - 0.5) / (- 0.35 - - 0.5) ; let __h = - 0.35 - - 0.5 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < - 0.25 { let __y1 = spline_helper_55 (noises , cache , x , z) ; let __y2 = spline_helper_56 (noises , cache , x , z) ; let __t = (__coord - - 0.35) / (- 0.25 - - 0.35) ; let __h = - 0.25 - - 0.35 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < - 0.1 { let __y1 = spline_helper_56 (noises , cache , x , z) ; let __y2 = spline_helper_57 (noises , cache , x , z) ; let __t = (__coord - - 0.25) / (- 0.1 - - 0.25) ; let __h = - 0.1 - - 0.25 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 0.03 { let __y1 = spline_helper_57 (noises , cache , x , z) ; let __y2 = spline_helper_58 (noises , cache , x , z) ; let __t = (__coord - - 0.1) / (0.03 - - 0.1) ; let __h = 0.03 - - 0.1 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 0.35 { let __y1 = spline_helper_58 (noises , cache , x , z) ; let __y2 = 6.25 ; let __t = (__coord - 0.03) / (0.35 - 0.03) ; let __h = 0.35 - 0.03 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 0.45 { let __y1 = 6.25 ; let __y2 = spline_helper_59 (noises , cache , x , z) ; let __t = (__coord - 0.35) / (0.45 - 0.35) ; let __h = 0.45 - 0.35 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 0.55 { let __y1 = spline_helper_59 (noises , cache , x , z) ; let __y2 = spline_helper_61 (noises , cache , x , z) ; let __t = (__coord - 0.45) / (0.55 - 0.45) ; let __h = 0.55 - 0.45 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 0.62 { let __y1 = spline_helper_61 (noises , cache , x , z) ; let __y2 = 6.25 ; let __t = (__coord - 0.55) / (0.62 - 0.55) ; let __h = 0.62 - 0.55 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else { f64 :: from (6.25 + 0.0 * (__coord - 0.62)) } }) as f32 } # [inline] fn spline_helper_64 (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , z : f64) -> f32 { ({ let __coord = (cache . df_overworld__ridges) as f32 ; if __coord < - 0.2 { f64 :: from (6.3 + 0.0 * (__coord - - 0.2)) } else if __coord < 0.2 { let __y1 = 6.3 ; let __y2 = 5.47 ; let __t = (__coord - - 0.2) / (0.2 - - 0.2) ; let __h = 0.2 - - 0.2 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else { f64 :: from (5.47 + 0.0 * (__coord - 0.2)) } }) as f32 } # [inline] fn spline_helper_65 (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , z : f64) -> f32 { ({ let __coord = (cache . df_overworld__ridges) as f32 ; if __coord < - 0.05 { f64 :: from (6.3 + 0.0 * (__coord - - 0.05)) } else if __coord < 0.05 { let __y1 = 6.3 ; let __y2 = 2.67 ; let __t = (__coord - - 0.05) / (0.05 - - 0.05) ; let __h = 0.05 - - 0.05 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else { f64 :: from (2.67 + 0.0 * (__coord - 0.05)) } }) as f32 } # [inline] fn spline_helper_66 (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , z : f64) -> f32 { ({ let __coord = (cache . df_overworld__ridges) as f32 ; if __coord < - 0.2 { f64 :: from (6.3 + 0.0 * (__coord - - 0.2)) } else if __coord < 0.2 { let __y1 = 6.3 ; let __y2 = 5.47 ; let __t = (__coord - - 0.2) / (0.2 - - 0.2) ; let __h = 0.2 - - 0.2 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else { f64 :: from (5.47 + 0.0 * (__coord - 0.2)) } }) as f32 } # [inline] fn spline_helper_67 (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , z : f64) -> f32 { ({ let __coord = (cache . df_overworld__ridges) as f32 ; if __coord < - 0.2 { f64 :: from (6.3 + 0.0 * (__coord - - 0.2)) } else if __coord < 0.2 { let __y1 = 6.3 ; let __y2 = 5.47 ; let __t = (__coord - - 0.2) / (0.2 - - 0.2) ; let __h = 0.2 - - 0.2 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else { f64 :: from (5.47 + 0.0 * (__coord - 0.2)) } }) as f32 } # [inline] fn spline_helper_68 (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , z : f64) -> f32 { ({ let __coord = (cache . df_overworld__ridges) as f32 ; if __coord < - 0.05 { f64 :: from (2.67 + 0.0 * (__coord - - 0.05)) } else if __coord < 0.05 { let __y1 = 2.67 ; let __y2 = 6.3 ; let __t = (__coord - - 0.05) / (0.05 - - 0.05) ; let __h = 0.05 - - 0.05 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else { f64 :: from (6.3 + 0.0 * (__coord - 0.05)) } }) as f32 } # [inline] fn spline_helper_69 (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , z : f64) -> f32 { ({ let __coord = (cache . df_overworld__ridges) as f32 ; if __coord < - 0.2 { f64 :: from (6.3 + 0.0 * (__coord - - 0.2)) } else if __coord < 0.2 { let __y1 = 6.3 ; let __y2 = 5.47 ; let __t = (__coord - - 0.2) / (0.2 - - 0.2) ; let __h = 0.2 - - 0.2 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else { f64 :: from (5.47 + 0.0 * (__coord - 0.2)) } }) as f32 } # [inline] fn spline_helper_71 (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , z : f64) -> f32 { ({ let __coord = (cache . df_overworld__ridges) as f32 ; if __coord < 0.0 { f64 :: from (5.47 + 0.0 * (__coord - 0.0)) } else if __coord < 0.1 { let __y1 = 5.47 ; let __y2 = 0.625 ; let __t = (__coord - 0.0) / (0.1 - 0.0) ; let __h = 0.1 - 0.0 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else { f64 :: from (0.625 + 0.0 * (__coord - 0.1)) } }) as f32 } # [inline] fn spline_helper_70 (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , z : f64) -> f32 { ({ let __coord = (cache . df_overworld__ridges_folded) as f32 ; if __coord < - 0.9 { f64 :: from (5.47 + 0.0 * (__coord - - 0.9)) } else if __coord < - 0.69 { let __y1 = 5.47 ; let __y2 = spline_helper_71 (noises , cache , x , z) ; let __t = (__coord - - 0.9) / (- 0.69 - - 0.9) ; let __h = - 0.69 - - 0.9 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else { f64 :: from (spline_helper_71 (noises , cache , x , z) + 0.0 * (__coord - - 0.69)) } }) as f32 } # [inline] fn spline_helper_73 (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , z : f64) -> f32 { ({ let __coord = (cache . df_overworld__ridges) as f32 ; if __coord < 0.0 { f64 :: from (5.47 + 0.0 * (__coord - 0.0)) } else if __coord < 0.1 { let __y1 = 5.47 ; let __y2 = 0.625 ; let __t = (__coord - 0.0) / (0.1 - 0.0) ; let __h = 0.1 - 0.0 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else { f64 :: from (0.625 + 0.0 * (__coord - 0.1)) } }) as f32 } # [inline] fn spline_helper_72 (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , z : f64) -> f32 { ({ let __coord = (cache . df_overworld__ridges_folded) as f32 ; if __coord < - 0.9 { f64 :: from (5.47 + 0.0 * (__coord - - 0.9)) } else if __coord < - 0.69 { let __y1 = 5.47 ; let __y2 = spline_helper_73 (noises , cache , x , z) ; let __t = (__coord - - 0.9) / (- 0.69 - - 0.9) ; let __h = - 0.69 - - 0.9 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else { f64 :: from (spline_helper_73 (noises , cache , x , z) + 0.0 * (__coord - - 0.69)) } }) as f32 } # [inline] fn spline_helper_63 (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , z : f64) -> f32 { ({ let __coord = (cache . df_overworld__erosion) as f32 ; if __coord < - 0.6 { f64 :: from (spline_helper_64 (noises , cache , x , z) + 0.0 * (__coord - - 0.6)) } else if __coord < - 0.5 { let __y1 = spline_helper_64 (noises , cache , x , z) ; let __y2 = spline_helper_65 (noises , cache , x , z) ; let __t = (__coord - - 0.6) / (- 0.5 - - 0.6) ; let __h = - 0.5 - - 0.6 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < - 0.35 { let __y1 = spline_helper_65 (noises , cache , x , z) ; let __y2 = spline_helper_66 (noises , cache , x , z) ; let __t = (__coord - - 0.5) / (- 0.35 - - 0.5) ; let __h = - 0.35 - - 0.5 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < - 0.25 { let __y1 = spline_helper_66 (noises , cache , x , z) ; let __y2 = spline_helper_67 (noises , cache , x , z) ; let __t = (__coord - - 0.35) / (- 0.25 - - 0.35) ; let __h = - 0.25 - - 0.35 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < - 0.1 { let __y1 = spline_helper_67 (noises , cache , x , z) ; let __y2 = spline_helper_68 (noises , cache , x , z) ; let __t = (__coord - - 0.25) / (- 0.1 - - 0.25) ; let __h = - 0.1 - - 0.25 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 0.03 { let __y1 = spline_helper_68 (noises , cache , x , z) ; let __y2 = spline_helper_69 (noises , cache , x , z) ; let __t = (__coord - - 0.1) / (0.03 - - 0.1) ; let __h = 0.03 - - 0.1 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 0.35 { let __y1 = spline_helper_69 (noises , cache , x , z) ; let __y2 = 5.47 ; let __t = (__coord - 0.03) / (0.35 - 0.03) ; let __h = 0.35 - 0.03 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 0.45 { let __y1 = 5.47 ; let __y2 = spline_helper_70 (noises , cache , x , z) ; let __t = (__coord - 0.35) / (0.45 - 0.35) ; let __h = 0.45 - 0.35 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 0.55 { let __y1 = spline_helper_70 (noises , cache , x , z) ; let __y2 = spline_helper_72 (noises , cache , x , z) ; let __t = (__coord - 0.45) / (0.55 - 0.45) ; let __h = 0.55 - 0.45 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 0.62 { let __y1 = spline_helper_72 (noises , cache , x , z) ; let __y2 = 5.47 ; let __t = (__coord - 0.55) / (0.62 - 0.55) ; let __h = 0.62 - 0.55 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else { f64 :: from (5.47 + 0.0 * (__coord - 0.62)) } }) as f32 } # [inline] fn spline_helper_75 (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , z : f64) -> f32 { ({ let __coord = (cache . df_overworld__ridges) as f32 ; if __coord < - 0.2 { f64 :: from (6.3 + 0.0 * (__coord - - 0.2)) } else if __coord < 0.2 { let __y1 = 6.3 ; let __y2 = 5.08 ; let __t = (__coord - - 0.2) / (0.2 - - 0.2) ; let __h = 0.2 - - 0.2 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else { f64 :: from (5.08 + 0.0 * (__coord - 0.2)) } }) as f32 } # [inline] fn spline_helper_76 (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , z : f64) -> f32 { ({ let __coord = (cache . df_overworld__ridges) as f32 ; if __coord < - 0.05 { f64 :: from (6.3 + 0.0 * (__coord - - 0.05)) } else if __coord < 0.05 { let __y1 = 6.3 ; let __y2 = 2.67 ; let __t = (__coord - - 0.05) / (0.05 - - 0.05) ; let __h = 0.05 - - 0.05 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else { f64 :: from (2.67 + 0.0 * (__coord - 0.05)) } }) as f32 } # [inline] fn spline_helper_77 (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , z : f64) -> f32 { ({ let __coord = (cache . df_overworld__ridges) as f32 ; if __coord < - 0.2 { f64 :: from (6.3 + 0.0 * (__coord - - 0.2)) } else if __coord < 0.2 { let __y1 = 6.3 ; let __y2 = 5.08 ; let __t = (__coord - - 0.2) / (0.2 - - 0.2) ; let __h = 0.2 - - 0.2 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else { f64 :: from (5.08 + 0.0 * (__coord - 0.2)) } }) as f32 } # [inline] fn spline_helper_78 (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , z : f64) -> f32 { ({ let __coord = (cache . df_overworld__ridges) as f32 ; if __coord < - 0.2 { f64 :: from (6.3 + 0.0 * (__coord - - 0.2)) } else if __coord < 0.2 { let __y1 = 6.3 ; let __y2 = 5.08 ; let __t = (__coord - - 0.2) / (0.2 - - 0.2) ; let __h = 0.2 - - 0.2 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else { f64 :: from (5.08 + 0.0 * (__coord - 0.2)) } }) as f32 } # [inline] fn spline_helper_79 (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , z : f64) -> f32 { ({ let __coord = (cache . df_overworld__ridges) as f32 ; if __coord < - 0.05 { f64 :: from (2.67 + 0.0 * (__coord - - 0.05)) } else if __coord < 0.05 { let __y1 = 2.67 ; let __y2 = 6.3 ; let __t = (__coord - - 0.05) / (0.05 - - 0.05) ; let __h = 0.05 - - 0.05 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else { f64 :: from (6.3 + 0.0 * (__coord - 0.05)) } }) as f32 } # [inline] fn spline_helper_80 (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , z : f64) -> f32 { ({ let __coord = (cache . df_overworld__ridges) as f32 ; if __coord < - 0.2 { f64 :: from (6.3 + 0.0 * (__coord - - 0.2)) } else if __coord < 0.2 { let __y1 = 6.3 ; let __y2 = 5.08 ; let __t = (__coord - - 0.2) / (0.2 - - 0.2) ; let __h = 0.2 - - 0.2 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else { f64 :: from (5.08 + 0.0 * (__coord - 0.2)) } }) as f32 } # [inline] fn spline_helper_82 (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , z : f64) -> f32 { ({ let __coord = (cache . df_overworld__ridges) as f32 ; if __coord < 0.0 { f64 :: from (5.08 + 0.0 * (__coord - 0.0)) } else if __coord < 0.1 { let __y1 = 5.08 ; let __y2 = 0.625 ; let __t = (__coord - 0.0) / (0.1 - 0.0) ; let __h = 0.1 - 0.0 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else { f64 :: from (0.625 + 0.0 * (__coord - 0.1)) } }) as f32 } # [inline] fn spline_helper_81 (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , z : f64) -> f32 { ({ let __coord = (cache . df_overworld__ridges_folded) as f32 ; if __coord < - 0.9 { f64 :: from (5.08 + 0.0 * (__coord - - 0.9)) } else if __coord < - 0.69 { let __y1 = 5.08 ; let __y2 = spline_helper_82 (noises , cache , x , z) ; let __t = (__coord - - 0.9) / (- 0.69 - - 0.9) ; let __h = - 0.69 - - 0.9 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else { f64 :: from (spline_helper_82 (noises , cache , x , z) + 0.0 * (__coord - - 0.69)) } }) as f32 } # [inline] fn spline_helper_84 (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , z : f64) -> f32 { ({ let __coord = (cache . df_overworld__ridges) as f32 ; if __coord < 0.0 { f64 :: from (5.08 + 0.0 * (__coord - 0.0)) } else if __coord < 0.1 { let __y1 = 5.08 ; let __y2 = 0.625 ; let __t = (__coord - 0.0) / (0.1 - 0.0) ; let __h = 0.1 - 0.0 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else { f64 :: from (0.625 + 0.0 * (__coord - 0.1)) } }) as f32 } # [inline] fn spline_helper_83 (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , z : f64) -> f32 { ({ let __coord = (cache . df_overworld__ridges_folded) as f32 ; if __coord < - 0.9 { f64 :: from (5.08 + 0.0 * (__coord - - 0.9)) } else if __coord < - 0.69 { let __y1 = 5.08 ; let __y2 = spline_helper_84 (noises , cache , x , z) ; let __t = (__coord - - 0.9) / (- 0.69 - - 0.9) ; let __h = - 0.69 - - 0.9 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else { f64 :: from (spline_helper_84 (noises , cache , x , z) + 0.0 * (__coord - - 0.69)) } }) as f32 } # [inline] fn spline_helper_74 (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , z : f64) -> f32 { ({ let __coord = (cache . df_overworld__erosion) as f32 ; if __coord < - 0.6 { f64 :: from (spline_helper_75 (noises , cache , x , z) + 0.0 * (__coord - - 0.6)) } else if __coord < - 0.5 { let __y1 = spline_helper_75 (noises , cache , x , z) ; let __y2 = spline_helper_76 (noises , cache , x , z) ; let __t = (__coord - - 0.6) / (- 0.5 - - 0.6) ; let __h = - 0.5 - - 0.6 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < - 0.35 { let __y1 = spline_helper_76 (noises , cache , x , z) ; let __y2 = spline_helper_77 (noises , cache , x , z) ; let __t = (__coord - - 0.5) / (- 0.35 - - 0.5) ; let __h = - 0.35 - - 0.5 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < - 0.25 { let __y1 = spline_helper_77 (noises , cache , x , z) ; let __y2 = spline_helper_78 (noises , cache , x , z) ; let __t = (__coord - - 0.35) / (- 0.25 - - 0.35) ; let __h = - 0.25 - - 0.35 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < - 0.1 { let __y1 = spline_helper_78 (noises , cache , x , z) ; let __y2 = spline_helper_79 (noises , cache , x , z) ; let __t = (__coord - - 0.25) / (- 0.1 - - 0.25) ; let __h = - 0.1 - - 0.25 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 0.03 { let __y1 = spline_helper_79 (noises , cache , x , z) ; let __y2 = spline_helper_80 (noises , cache , x , z) ; let __t = (__coord - - 0.1) / (0.03 - - 0.1) ; let __h = 0.03 - - 0.1 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 0.35 { let __y1 = spline_helper_80 (noises , cache , x , z) ; let __y2 = 5.08 ; let __t = (__coord - 0.03) / (0.35 - 0.03) ; let __h = 0.35 - 0.03 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 0.45 { let __y1 = 5.08 ; let __y2 = spline_helper_81 (noises , cache , x , z) ; let __t = (__coord - 0.35) / (0.45 - 0.35) ; let __h = 0.45 - 0.35 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 0.55 { let __y1 = spline_helper_81 (noises , cache , x , z) ; let __y2 = spline_helper_83 (noises , cache , x , z) ; let __t = (__coord - 0.45) / (0.55 - 0.45) ; let __h = 0.55 - 0.45 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 0.62 { let __y1 = spline_helper_83 (noises , cache , x , z) ; let __y2 = 5.08 ; let __t = (__coord - 0.55) / (0.62 - 0.55) ; let __h = 0.62 - 0.55 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else { f64 :: from (5.08 + 0.0 * (__coord - 0.62)) } }) as f32 } # [inline] fn spline_helper_86 (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , z : f64) -> f32 { ({ let __coord = (cache . df_overworld__ridges) as f32 ; if __coord < - 0.2 { f64 :: from (6.3 + 0.0 * (__coord - - 0.2)) } else if __coord < 0.2 { let __y1 = 6.3 ; let __y2 = 4.69 ; let __t = (__coord - - 0.2) / (0.2 - - 0.2) ; let __h = 0.2 - - 0.2 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else { f64 :: from (4.69 + 0.0 * (__coord - 0.2)) } }) as f32 } # [inline] fn spline_helper_87 (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , z : f64) -> f32 { ({ let __coord = (cache . df_overworld__ridges) as f32 ; if __coord < - 0.05 { f64 :: from (6.3 + 0.0 * (__coord - - 0.05)) } else if __coord < 0.05 { let __y1 = 6.3 ; let __y2 = 2.67 ; let __t = (__coord - - 0.05) / (0.05 - - 0.05) ; let __h = 0.05 - - 0.05 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else { f64 :: from (2.67 + 0.0 * (__coord - 0.05)) } }) as f32 } # [inline] fn spline_helper_88 (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , z : f64) -> f32 { ({ let __coord = (cache . df_overworld__ridges) as f32 ; if __coord < - 0.2 { f64 :: from (6.3 + 0.0 * (__coord - - 0.2)) } else if __coord < 0.2 { let __y1 = 6.3 ; let __y2 = 4.69 ; let __t = (__coord - - 0.2) / (0.2 - - 0.2) ; let __h = 0.2 - - 0.2 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else { f64 :: from (4.69 + 0.0 * (__coord - 0.2)) } }) as f32 } # [inline] fn spline_helper_89 (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , z : f64) -> f32 { ({ let __coord = (cache . df_overworld__ridges) as f32 ; if __coord < - 0.2 { f64 :: from (6.3 + 0.0 * (__coord - - 0.2)) } else if __coord < 0.2 { let __y1 = 6.3 ; let __y2 = 4.69 ; let __t = (__coord - - 0.2) / (0.2 - - 0.2) ; let __h = 0.2 - - 0.2 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else { f64 :: from (4.69 + 0.0 * (__coord - 0.2)) } }) as f32 } # [inline] fn spline_helper_90 (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , z : f64) -> f32 { ({ let __coord = (cache . df_overworld__ridges) as f32 ; if __coord < - 0.05 { f64 :: from (2.67 + 0.0 * (__coord - - 0.05)) } else if __coord < 0.05 { let __y1 = 2.67 ; let __y2 = 6.3 ; let __t = (__coord - - 0.05) / (0.05 - - 0.05) ; let __h = 0.05 - - 0.05 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else { f64 :: from (6.3 + 0.0 * (__coord - 0.05)) } }) as f32 } # [inline] fn spline_helper_91 (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , z : f64) -> f32 { ({ let __coord = (cache . df_overworld__ridges) as f32 ; if __coord < - 0.2 { f64 :: from (6.3 + 0.0 * (__coord - - 0.2)) } else if __coord < 0.2 { let __y1 = 6.3 ; let __y2 = 4.69 ; let __t = (__coord - - 0.2) / (0.2 - - 0.2) ; let __h = 0.2 - - 0.2 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else { f64 :: from (4.69 + 0.0 * (__coord - 0.2)) } }) as f32 } # [inline] fn spline_helper_93 (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , z : f64) -> f32 { ({ let __coord = (cache . df_overworld__ridges) as f32 ; if __coord < - 0.2 { f64 :: from (6.3 + 0.0 * (__coord - - 0.2)) } else if __coord < 0.2 { let __y1 = 6.3 ; let __y2 = 4.69 ; let __t = (__coord - - 0.2) / (0.2 - - 0.2) ; let __h = 0.2 - - 0.2 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else { f64 :: from (4.69 + 0.0 * (__coord - 0.2)) } }) as f32 } # [inline] fn spline_helper_92 (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , z : f64) -> f32 { ({ let __coord = (cache . df_overworld__ridges_folded) as f32 ; if __coord < 0.45 { f64 :: from (spline_helper_93 (noises , cache , x , z) + 0.0 * (__coord - 0.45)) } else if __coord < 0.7 { let __y1 = spline_helper_93 (noises , cache , x , z) ; let __y2 = 1.56 ; let __t = (__coord - 0.45) / (0.7 - 0.45) ; let __h = 0.7 - 0.45 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else { f64 :: from (1.56 + 0.0 * (__coord - 0.7)) } }) as f32 } # [inline] fn spline_helper_95 (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , z : f64) -> f32 { ({ let __coord = (cache . df_overworld__ridges) as f32 ; if __coord < - 0.2 { f64 :: from (6.3 + 0.0 * (__coord - - 0.2)) } else if __coord < 0.2 { let __y1 = 6.3 ; let __y2 = 4.69 ; let __t = (__coord - - 0.2) / (0.2 - - 0.2) ; let __h = 0.2 - - 0.2 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else { f64 :: from (4.69 + 0.0 * (__coord - 0.2)) } }) as f32 } # [inline] fn spline_helper_94 (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , z : f64) -> f32 { ({ let __coord = (cache . df_overworld__ridges_folded) as f32 ; if __coord < 0.45 { f64 :: from (spline_helper_95 (noises , cache , x , z) + 0.0 * (__coord - 0.45)) } else if __coord < 0.7 { let __y1 = spline_helper_95 (noises , cache , x , z) ; let __y2 = 1.56 ; let __t = (__coord - 0.45) / (0.7 - 0.45) ; let __h = 0.7 - 0.45 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else { f64 :: from (1.56 + 0.0 * (__coord - 0.7)) } }) as f32 } # [inline] fn spline_helper_97 (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , z : f64) -> f32 { ({ let __coord = (cache . df_overworld__ridges) as f32 ; if __coord < - 0.2 { f64 :: from (6.3 + 0.0 * (__coord - - 0.2)) } else if __coord < 0.2 { let __y1 = 6.3 ; let __y2 = 4.69 ; let __t = (__coord - - 0.2) / (0.2 - - 0.2) ; let __h = 0.2 - - 0.2 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else { f64 :: from (4.69 + 0.0 * (__coord - 0.2)) } }) as f32 } # [inline] fn spline_helper_96 (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , z : f64) -> f32 { ({ let __coord = (cache . df_overworld__ridges_folded) as f32 ; if __coord < - 0.7 { f64 :: from (spline_helper_97 (noises , cache , x , z) + 0.0 * (__coord - - 0.7)) } else if __coord < - 0.15 { let __y1 = spline_helper_97 (noises , cache , x , z) ; let __y2 = 1.37 ; let __t = (__coord - - 0.7) / (- 0.15 - - 0.7) ; let __h = - 0.15 - - 0.7 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else { f64 :: from (1.37 + 0.0 * (__coord - - 0.15)) } }) as f32 } # [inline] fn spline_helper_99 (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , z : f64) -> f32 { ({ let __coord = (cache . df_overworld__ridges) as f32 ; if __coord < - 0.2 { f64 :: from (6.3 + 0.0 * (__coord - - 0.2)) } else if __coord < 0.2 { let __y1 = 6.3 ; let __y2 = 4.69 ; let __t = (__coord - - 0.2) / (0.2 - - 0.2) ; let __h = 0.2 - - 0.2 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else { f64 :: from (4.69 + 0.0 * (__coord - 0.2)) } }) as f32 } # [inline] fn spline_helper_98 (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , z : f64) -> f32 { ({ let __coord = (cache . df_overworld__ridges_folded) as f32 ; if __coord < - 0.7 { f64 :: from (spline_helper_99 (noises , cache , x , z) + 0.0 * (__coord - - 0.7)) } else if __coord < - 0.15 { let __y1 = spline_helper_99 (noises , cache , x , z) ; let __y2 = 1.37 ; let __t = (__coord - - 0.7) / (- 0.15 - - 0.7) ; let __h = - 0.15 - - 0.7 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else { f64 :: from (1.37 + 0.0 * (__coord - - 0.15)) } }) as f32 } # [inline] fn spline_helper_85 (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , z : f64) -> f32 { ({ let __coord = (cache . df_overworld__erosion) as f32 ; if __coord < - 0.6 { f64 :: from (spline_helper_86 (noises , cache , x , z) + 0.0 * (__coord - - 0.6)) } else if __coord < - 0.5 { let __y1 = spline_helper_86 (noises , cache , x , z) ; let __y2 = spline_helper_87 (noises , cache , x , z) ; let __t = (__coord - - 0.6) / (- 0.5 - - 0.6) ; let __h = - 0.5 - - 0.6 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < - 0.35 { let __y1 = spline_helper_87 (noises , cache , x , z) ; let __y2 = spline_helper_88 (noises , cache , x , z) ; let __t = (__coord - - 0.5) / (- 0.35 - - 0.5) ; let __h = - 0.35 - - 0.5 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < - 0.25 { let __y1 = spline_helper_88 (noises , cache , x , z) ; let __y2 = spline_helper_89 (noises , cache , x , z) ; let __t = (__coord - - 0.35) / (- 0.25 - - 0.35) ; let __h = - 0.25 - - 0.35 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < - 0.1 { let __y1 = spline_helper_89 (noises , cache , x , z) ; let __y2 = spline_helper_90 (noises , cache , x , z) ; let __t = (__coord - - 0.25) / (- 0.1 - - 0.25) ; let __h = - 0.1 - - 0.25 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 0.03 { let __y1 = spline_helper_90 (noises , cache , x , z) ; let __y2 = spline_helper_91 (noises , cache , x , z) ; let __t = (__coord - - 0.1) / (0.03 - - 0.1) ; let __h = 0.03 - - 0.1 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 0.05 { let __y1 = spline_helper_91 (noises , cache , x , z) ; let __y2 = spline_helper_92 (noises , cache , x , z) ; let __t = (__coord - 0.03) / (0.05 - 0.03) ; let __h = 0.05 - 0.03 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 0.4 { let __y1 = spline_helper_92 (noises , cache , x , z) ; let __y2 = spline_helper_94 (noises , cache , x , z) ; let __t = (__coord - 0.05) / (0.4 - 0.05) ; let __h = 0.4 - 0.05 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 0.45 { let __y1 = spline_helper_94 (noises , cache , x , z) ; let __y2 = spline_helper_96 (noises , cache , x , z) ; let __t = (__coord - 0.4) / (0.45 - 0.4) ; let __h = 0.45 - 0.4 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 0.55 { let __y1 = spline_helper_96 (noises , cache , x , z) ; let __y2 = spline_helper_98 (noises , cache , x , z) ; let __t = (__coord - 0.45) / (0.55 - 0.45) ; let __h = 0.55 - 0.45 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 0.58 { let __y1 = spline_helper_98 (noises , cache , x , z) ; let __y2 = 4.69 ; let __t = (__coord - 0.55) / (0.58 - 0.55) ; let __h = 0.58 - 0.55 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else { f64 :: from (4.69 + 0.0 * (__coord - 0.58)) } }) as f32 } # [inline] fn spline_helper_102 (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , z : f64) -> f32 { ({ let __coord = (cache . df_overworld__ridges) as f32 ; if __coord < - 0.01 { f64 :: from (0.63 + 0.0 * (__coord - - 0.01)) } else if __coord < 0.01 { let __y1 = 0.63 ; let __y2 = 0.3 ; let __t = (__coord - - 0.01) / (0.01 - - 0.01) ; let __h = 0.01 - - 0.01 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else { f64 :: from (0.3 + 0.0 * (__coord - 0.01)) } }) as f32 } # [inline] fn spline_helper_101 (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , z : f64) -> f32 { ({ let __coord = (cache . df_overworld__ridges_folded) as f32 ; if __coord < 0.19999999 { f64 :: from (0.0 + 0.0 * (__coord - 0.19999999)) } else if __coord < 0.44999996 { let __y1 = 0.0 ; let __y2 = 0.0 ; let __t = (__coord - 0.19999999) / (0.44999996 - 0.19999999) ; let __h = 0.44999996 - 0.19999999 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 1.0 { let __y1 = 0.0 ; let __y2 = spline_helper_102 (noises , cache , x , z) ; let __t = (__coord - 0.44999996) / (1.0 - 0.44999996) ; let __h = 1.0 - 0.44999996 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else { f64 :: from (spline_helper_102 (noises , cache , x , z) + 0.0 * (__coord - 1.0)) } }) as f32 } # [inline] fn spline_helper_104 (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , z : f64) -> f32 { ({ let __coord = (cache . df_overworld__ridges) as f32 ; if __coord < - 0.01 { f64 :: from (0.315 + 0.0 * (__coord - - 0.01)) } else if __coord < 0.01 { let __y1 = 0.315 ; let __y2 = 0.15 ; let __t = (__coord - - 0.01) / (0.01 - - 0.01) ; let __h = 0.01 - - 0.01 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else { f64 :: from (0.15 + 0.0 * (__coord - 0.01)) } }) as f32 } # [inline] fn spline_helper_103 (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , z : f64) -> f32 { ({ let __coord = (cache . df_overworld__ridges_folded) as f32 ; if __coord < 0.19999999 { f64 :: from (0.0 + 0.0 * (__coord - 0.19999999)) } else if __coord < 0.44999996 { let __y1 = 0.0 ; let __y2 = 0.0 ; let __t = (__coord - 0.19999999) / (0.44999996 - 0.19999999) ; let __h = 0.44999996 - 0.19999999 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 1.0 { let __y1 = 0.0 ; let __y2 = spline_helper_104 (noises , cache , x , z) ; let __t = (__coord - 0.44999996) / (1.0 - 0.44999996) ; let __h = 1.0 - 0.44999996 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else { f64 :: from (spline_helper_104 (noises , cache , x , z) + 0.0 * (__coord - 1.0)) } }) as f32 } # [inline] fn spline_helper_106 (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , z : f64) -> f32 { ({ let __coord = (cache . df_overworld__ridges) as f32 ; if __coord < - 0.01 { f64 :: from (0.315 + 0.0 * (__coord - - 0.01)) } else if __coord < 0.01 { let __y1 = 0.315 ; let __y2 = 0.15 ; let __t = (__coord - - 0.01) / (0.01 - - 0.01) ; let __h = 0.01 - - 0.01 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else { f64 :: from (0.15 + 0.0 * (__coord - 0.01)) } }) as f32 } # [inline] fn spline_helper_105 (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , z : f64) -> f32 { ({ let __coord = (cache . df_overworld__ridges_folded) as f32 ; if __coord < 0.19999999 { f64 :: from (0.0 + 0.0 * (__coord - 0.19999999)) } else if __coord < 0.44999996 { let __y1 = 0.0 ; let __y2 = 0.0 ; let __t = (__coord - 0.19999999) / (0.44999996 - 0.19999999) ; let __h = 0.44999996 - 0.19999999 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 1.0 { let __y1 = 0.0 ; let __y2 = spline_helper_106 (noises , cache , x , z) ; let __t = (__coord - 0.44999996) / (1.0 - 0.44999996) ; let __h = 1.0 - 0.44999996 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else { f64 :: from (spline_helper_106 (noises , cache , x , z) + 0.0 * (__coord - 1.0)) } }) as f32 } # [inline] fn spline_helper_100 (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , z : f64) -> f32 { ({ let __coord = (cache . df_overworld__erosion) as f32 ; if __coord < - 1.0 { f64 :: from (spline_helper_101 (noises , cache , x , z) + 0.0 * (__coord - - 1.0)) } else if __coord < - 0.78 { let __y1 = spline_helper_101 (noises , cache , x , z) ; let __y2 = spline_helper_103 (noises , cache , x , z) ; let __t = (__coord - - 1.0) / (- 0.78 - - 1.0) ; let __h = - 0.78 - - 1.0 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < - 0.5775 { let __y1 = spline_helper_103 (noises , cache , x , z) ; let __y2 = spline_helper_105 (noises , cache , x , z) ; let __t = (__coord - - 0.78) / (- 0.5775 - - 0.78) ; let __h = - 0.5775 - - 0.78 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < - 0.375 { let __y1 = spline_helper_105 (noises , cache , x , z) ; let __y2 = 0.0 ; let __t = (__coord - - 0.5775) / (- 0.375 - - 0.5775) ; let __h = - 0.375 - - 0.5775 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else { f64 :: from (0.0 + 0.0 * (__coord - - 0.375)) } }) as f32 } # [inline] fn spline_helper_109 (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , z : f64) -> f32 { ({ let __coord = (cache . df_overworld__ridges) as f32 ; if __coord < - 0.01 { f64 :: from (0.63 + 0.0 * (__coord - - 0.01)) } else if __coord < 0.01 { let __y1 = 0.63 ; let __y2 = 0.3 ; let __t = (__coord - - 0.01) / (0.01 - - 0.01) ; let __h = 0.01 - - 0.01 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else { f64 :: from (0.3 + 0.0 * (__coord - 0.01)) } }) as f32 } # [inline] fn spline_helper_110 (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , z : f64) -> f32 { ({ let __coord = (cache . df_overworld__ridges) as f32 ; if __coord < - 0.01 { f64 :: from (0.63 + 0.0 * (__coord - - 0.01)) } else if __coord < 0.01 { let __y1 = 0.63 ; let __y2 = 0.3 ; let __t = (__coord - - 0.01) / (0.01 - - 0.01) ; let __h = 0.01 - - 0.01 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else { f64 :: from (0.3 + 0.0 * (__coord - 0.01)) } }) as f32 } # [inline] fn spline_helper_108 (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , z : f64) -> f32 { ({ let __coord = (cache . df_overworld__ridges_folded) as f32 ; if __coord < 0.19999999 { f64 :: from (0.0 + 0.0 * (__coord - 0.19999999)) } else if __coord < 0.44999996 { let __y1 = 0.0 ; let __y2 = spline_helper_109 (noises , cache , x , z) ; let __t = (__coord - 0.19999999) / (0.44999996 - 0.19999999) ; let __h = 0.44999996 - 0.19999999 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 1.0 { let __y1 = spline_helper_109 (noises , cache , x , z) ; let __y2 = spline_helper_110 (noises , cache , x , z) ; let __t = (__coord - 0.44999996) / (1.0 - 0.44999996) ; let __h = 1.0 - 0.44999996 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else { f64 :: from (spline_helper_110 (noises , cache , x , z) + 0.0 * (__coord - 1.0)) } }) as f32 } # [inline] fn spline_helper_112 (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , z : f64) -> f32 { ({ let __coord = (cache . df_overworld__ridges) as f32 ; if __coord < - 0.01 { f64 :: from (0.63 + 0.0 * (__coord - - 0.01)) } else if __coord < 0.01 { let __y1 = 0.63 ; let __y2 = 0.3 ; let __t = (__coord - - 0.01) / (0.01 - - 0.01) ; let __h = 0.01 - - 0.01 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else { f64 :: from (0.3 + 0.0 * (__coord - 0.01)) } }) as f32 } # [inline] fn spline_helper_111 (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , z : f64) -> f32 { ({ let __coord = (cache . df_overworld__ridges_folded) as f32 ; if __coord < 0.19999999 { f64 :: from (0.0 + 0.0 * (__coord - 0.19999999)) } else if __coord < 0.44999996 { let __y1 = 0.0 ; let __y2 = 0.0 ; let __t = (__coord - 0.19999999) / (0.44999996 - 0.19999999) ; let __h = 0.44999996 - 0.19999999 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 1.0 { let __y1 = 0.0 ; let __y2 = spline_helper_112 (noises , cache , x , z) ; let __t = (__coord - 0.44999996) / (1.0 - 0.44999996) ; let __h = 1.0 - 0.44999996 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else { f64 :: from (spline_helper_112 (noises , cache , x , z) + 0.0 * (__coord - 1.0)) } }) as f32 } # [inline] fn spline_helper_114 (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , z : f64) -> f32 { ({ let __coord = (cache . df_overworld__ridges) as f32 ; if __coord < - 0.01 { f64 :: from (0.63 + 0.0 * (__coord - - 0.01)) } else if __coord < 0.01 { let __y1 = 0.63 ; let __y2 = 0.3 ; let __t = (__coord - - 0.01) / (0.01 - - 0.01) ; let __h = 0.01 - - 0.01 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else { f64 :: from (0.3 + 0.0 * (__coord - 0.01)) } }) as f32 } # [inline] fn spline_helper_113 (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , z : f64) -> f32 { ({ let __coord = (cache . df_overworld__ridges_folded) as f32 ; if __coord < 0.19999999 { f64 :: from (0.0 + 0.0 * (__coord - 0.19999999)) } else if __coord < 0.44999996 { let __y1 = 0.0 ; let __y2 = 0.0 ; let __t = (__coord - 0.19999999) / (0.44999996 - 0.19999999) ; let __h = 0.44999996 - 0.19999999 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < 1.0 { let __y1 = 0.0 ; let __y2 = spline_helper_114 (noises , cache , x , z) ; let __t = (__coord - 0.44999996) / (1.0 - 0.44999996) ; let __h = 1.0 - 0.44999996 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else { f64 :: from (spline_helper_114 (noises , cache , x , z) + 0.0 * (__coord - 1.0)) } }) as f32 } # [inline] fn spline_helper_107 (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , z : f64) -> f32 { ({ let __coord = (cache . df_overworld__erosion) as f32 ; if __coord < - 1.0 { f64 :: from (spline_helper_108 (noises , cache , x , z) + 0.0 * (__coord - - 1.0)) } else if __coord < - 0.78 { let __y1 = spline_helper_108 (noises , cache , x , z) ; let __y2 = spline_helper_111 (noises , cache , x , z) ; let __t = (__coord - - 1.0) / (- 0.78 - - 1.0) ; let __h = - 0.78 - - 1.0 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < - 0.5775 { let __y1 = spline_helper_111 (noises , cache , x , z) ; let __y2 = spline_helper_113 (noises , cache , x , z) ; let __t = (__coord - - 0.78) / (- 0.5775 - - 0.78) ; let __h = - 0.5775 - - 0.78 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else if __coord < - 0.375 { let __y1 = spline_helper_113 (noises , cache , x , z) ; let __y2 = 0.0 ; let __t = (__coord - - 0.5775) / (- 0.375 - - 0.5775) ; let __h = - 0.375 - - 0.5775 ; let __a = 0.0 * __h - (__y2 - __y1) ; let __b = - 0.0 * __h + (__y2 - __y1) ; let __lerp_y = __y1 + __t * (__y2 - __y1) ; let __lerp_ab = __a + __t * (__b - __a) ; f64 :: from (__lerp_y + __t * (1.0_f32 - __t) * __lerp_ab) } else { f64 :: from (0.0 + 0.0 * (__coord - - 0.375)) } }) as f32 } # [doc = "`minecraft:overworld/base_3d_noise` (SIMD form, batches 4 Y values)"] # [allow (dead_code)] # [inline] fn compute_overworld__base_3d_noise_4x (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , ys : f64x4 , z : f64) -> f64x4 { { let __ys_arr = ys . to_array () ; let __r0 = { # [allow (clippy :: cast_possible_truncation)] let y = __ys_arr [0] ; noises . blended_noise . compute (x , y , z) } ; let __r1 = { # [allow (clippy :: cast_possible_truncation)] let y = __ys_arr [1] ; noises . blended_noise . compute (x , y , z) } ; let __r2 = { # [allow (clippy :: cast_possible_truncation)] let y = __ys_arr [2] ; noises . blended_noise . compute (x , y , z) } ; let __r3 = { # [allow (clippy :: cast_possible_truncation)] let y = __ys_arr [3] ; noises . blended_noise . compute (x , y , z) } ; f64x4 :: from_array ([__r0 , __r1 , __r2 , __r3]) } } # [doc = "`minecraft:overworld/caves/spaghetti_roughness_function` (SIMD form, batches 4 Y values)"] # [allow (dead_code)] # [inline] fn compute_overworld__caves__spaghetti_roughness_function_4x (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , ys : f64x4 , z : f64) -> f64x4 { ((((f64x4 :: splat (- 0.05)) + (((f64x4 :: splat (- 0.05)) * (noises . n_spaghetti_roughness_modulator . get_value_y_simd (x * 1.0 , ys * f64x4 :: splat (1.0) , z * 1.0 ,)))))) * (((f64x4 :: splat (- 0.4)) + ((noises . n_spaghetti_roughness . get_value_y_simd (x * 1.0 , ys * f64x4 :: splat (1.0) , z * 1.0 ,)) . abs ())))) } # [doc = "`minecraft:overworld/caves/entrances` (SIMD form, batches 4 Y values)"] # [allow (dead_code)] # [inline] fn compute_overworld__caves__entrances_4x (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , ys : f64x4 , z : f64) -> f64x4 { (((((f64x4 :: splat (0.37)) + (noises . n_cave_entrance . get_value_y_simd (x * 0.75 , ys * f64x4 :: splat (0.5) , z * 0.75 ,)))) + ({ let __t = (ys - f64x4 :: splat (- 10.0)) / f64x4 :: splat (30.0 - - 10.0) ; let __min = f64x4 :: splat (0.3) ; let __max = f64x4 :: splat (0.0) ; let __lerped = __min + __t * (__max - __min) ; let __below = __t . simd_lt (f64x4 :: splat (0.0)) ; let __above = __t . simd_gt (f64x4 :: splat (1.0)) ; let __r = __above . select (__max , __lerped) ; __below . select (__min , __r) }))) . simd_min (((compute_overworld__caves__spaghetti_roughness_function_4x (noises , cache , x , ys , z)) + (((({ let __cse_4 = noises . n_spaghetti_3d_rarity . get_value_y_simd (x * 2.0 , ys * f64x4 :: splat (1.0) , z * 2.0 ,) ; (({ let __ys_arr = ys . to_array () ; let __r0 = { # [allow (clippy :: cast_possible_truncation)] let y = __ys_arr [0] ; { let v = noises . n_spaghetti_3d_rarity . get_value (x * 2.0 , y * 1.0 , z * 2.0) ; if v < - 0.5 { ((0.75) * (noises . n_spaghetti_3d_1 . get_value (x * 1.3333333333333333 , y * 1.3333333333333333 , z * 1.3333333333333333))) } else { if v < 0.0 { ((1.0) * (noises . n_spaghetti_3d_1 . get_value (x * 1.0 , y * 1.0 , z * 1.0))) } else { if v < 0.5 { ((1.5) * (noises . n_spaghetti_3d_1 . get_value (x * 0.6666666666666666 , y * 0.6666666666666666 , z * 0.6666666666666666))) } else { ((2.0) * (noises . n_spaghetti_3d_1 . get_value (x * 0.5 , y * 0.5 , z * 0.5))) } } } } } ; let __r1 = { # [allow (clippy :: cast_possible_truncation)] let y = __ys_arr [1] ; { let v = noises . n_spaghetti_3d_rarity . get_value (x * 2.0 , y * 1.0 , z * 2.0) ; if v < - 0.5 { ((0.75) * (noises . n_spaghetti_3d_1 . get_value (x * 1.3333333333333333 , y * 1.3333333333333333 , z * 1.3333333333333333))) } else { if v < 0.0 { ((1.0) * (noises . n_spaghetti_3d_1 . get_value (x * 1.0 , y * 1.0 , z * 1.0))) } else { if v < 0.5 { ((1.5) * (noises . n_spaghetti_3d_1 . get_value (x * 0.6666666666666666 , y * 0.6666666666666666 , z * 0.6666666666666666))) } else { ((2.0) * (noises . n_spaghetti_3d_1 . get_value (x * 0.5 , y * 0.5 , z * 0.5))) } } } } } ; let __r2 = { # [allow (clippy :: cast_possible_truncation)] let y = __ys_arr [2] ; { let v = noises . n_spaghetti_3d_rarity . get_value (x * 2.0 , y * 1.0 , z * 2.0) ; if v < - 0.5 { ((0.75) * (noises . n_spaghetti_3d_1 . get_value (x * 1.3333333333333333 , y * 1.3333333333333333 , z * 1.3333333333333333))) } else { if v < 0.0 { ((1.0) * (noises . n_spaghetti_3d_1 . get_value (x * 1.0 , y * 1.0 , z * 1.0))) } else { if v < 0.5 { ((1.5) * (noises . n_spaghetti_3d_1 . get_value (x * 0.6666666666666666 , y * 0.6666666666666666 , z * 0.6666666666666666))) } else { ((2.0) * (noises . n_spaghetti_3d_1 . get_value (x * 0.5 , y * 0.5 , z * 0.5))) } } } } } ; let __r3 = { # [allow (clippy :: cast_possible_truncation)] let y = __ys_arr [3] ; { let v = noises . n_spaghetti_3d_rarity . get_value (x * 2.0 , y * 1.0 , z * 2.0) ; if v < - 0.5 { ((0.75) * (noises . n_spaghetti_3d_1 . get_value (x * 1.3333333333333333 , y * 1.3333333333333333 , z * 1.3333333333333333))) } else { if v < 0.0 { ((1.0) * (noises . n_spaghetti_3d_1 . get_value (x * 1.0 , y * 1.0 , z * 1.0))) } else { if v < 0.5 { ((1.5) * (noises . n_spaghetti_3d_1 . get_value (x * 0.6666666666666666 , y * 0.6666666666666666 , z * 0.6666666666666666))) } else { ((2.0) * (noises . n_spaghetti_3d_1 . get_value (x * 0.5 , y * 0.5 , z * 0.5))) } } } } } ; f64x4 :: from_array ([__r0 , __r1 , __r2 , __r3]) }) . abs ()) . simd_max (({ let __ys_arr = ys . to_array () ; let __r0 = { # [allow (clippy :: cast_possible_truncation)] let y = __ys_arr [0] ; { let v = noises . n_spaghetti_3d_rarity . get_value (x * 2.0 , y * 1.0 , z * 2.0) ; if v < - 0.5 { ((0.75) * (noises . n_spaghetti_3d_2 . get_value (x * 1.3333333333333333 , y * 1.3333333333333333 , z * 1.3333333333333333))) } else { if v < 0.0 { ((1.0) * (noises . n_spaghetti_3d_2 . get_value (x * 1.0 , y * 1.0 , z * 1.0))) } else { if v < 0.5 { ((1.5) * (noises . n_spaghetti_3d_2 . get_value (x * 0.6666666666666666 , y * 0.6666666666666666 , z * 0.6666666666666666))) } else { ((2.0) * (noises . n_spaghetti_3d_2 . get_value (x * 0.5 , y * 0.5 , z * 0.5))) } } } } } ; let __r1 = { # [allow (clippy :: cast_possible_truncation)] let y = __ys_arr [1] ; { let v = noises . n_spaghetti_3d_rarity . get_value (x * 2.0 , y * 1.0 , z * 2.0) ; if v < - 0.5 { ((0.75) * (noises . n_spaghetti_3d_2 . get_value (x * 1.3333333333333333 , y * 1.3333333333333333 , z * 1.3333333333333333))) } else { if v < 0.0 { ((1.0) * (noises . n_spaghetti_3d_2 . get_value (x * 1.0 , y * 1.0 , z * 1.0))) } else { if v < 0.5 { ((1.5) * (noises . n_spaghetti_3d_2 . get_value (x * 0.6666666666666666 , y * 0.6666666666666666 , z * 0.6666666666666666))) } else { ((2.0) * (noises . n_spaghetti_3d_2 . get_value (x * 0.5 , y * 0.5 , z * 0.5))) } } } } } ; let __r2 = { # [allow (clippy :: cast_possible_truncation)] let y = __ys_arr [2] ; { let v = noises . n_spaghetti_3d_rarity . get_value (x * 2.0 , y * 1.0 , z * 2.0) ; if v < - 0.5 { ((0.75) * (noises . n_spaghetti_3d_2 . get_value (x * 1.3333333333333333 , y * 1.3333333333333333 , z * 1.3333333333333333))) } else { if v < 0.0 { ((1.0) * (noises . n_spaghetti_3d_2 . get_value (x * 1.0 , y * 1.0 , z * 1.0))) } else { if v < 0.5 { ((1.5) * (noises . n_spaghetti_3d_2 . get_value (x * 0.6666666666666666 , y * 0.6666666666666666 , z * 0.6666666666666666))) } else { ((2.0) * (noises . n_spaghetti_3d_2 . get_value (x * 0.5 , y * 0.5 , z * 0.5))) } } } } } ; let __r3 = { # [allow (clippy :: cast_possible_truncation)] let y = __ys_arr [3] ; { let v = noises . n_spaghetti_3d_rarity . get_value (x * 2.0 , y * 1.0 , z * 2.0) ; if v < - 0.5 { ((0.75) * (noises . n_spaghetti_3d_2 . get_value (x * 1.3333333333333333 , y * 1.3333333333333333 , z * 1.3333333333333333))) } else { if v < 0.0 { ((1.0) * (noises . n_spaghetti_3d_2 . get_value (x * 1.0 , y * 1.0 , z * 1.0))) } else { if v < 0.5 { ((1.5) * (noises . n_spaghetti_3d_2 . get_value (x * 0.6666666666666666 , y * 0.6666666666666666 , z * 0.6666666666666666))) } else { ((2.0) * (noises . n_spaghetti_3d_2 . get_value (x * 0.5 , y * 0.5 , z * 0.5))) } } } } } ; f64x4 :: from_array ([__r0 , __r1 , __r2 , __r3]) }) . abs ()) }) + (((f64x4 :: splat (- 0.0765)) + (((f64x4 :: splat (- 0.011499999999999996)) * (noises . n_spaghetti_3d_thickness . get_value_y_simd (x * 1.0 , ys * f64x4 :: splat (1.0) , z * 1.0 ,)))))))) . simd_max (f64x4 :: splat (- 1.0)) . simd_min (f64x4 :: splat (1.0))))) } # [doc = "`minecraft:y` (SIMD form, batches 4 Y values)"] # [allow (dead_code)] # [inline] fn compute_y_4x (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , ys : f64x4 , z : f64) -> f64x4 { { let __t = (ys - f64x4 :: splat (- 4064.0)) / f64x4 :: splat (4062.0 - - 4064.0) ; let __min = f64x4 :: splat (- 4064.0) ; let __max = f64x4 :: splat (4062.0) ; let __lerped = __min + __t * (__max - __min) ; let __below = __t . simd_lt (f64x4 :: splat (0.0)) ; let __above = __t . simd_gt (f64x4 :: splat (1.0)) ; let __r = __above . select (__max , __lerped) ; __below . select (__min , __r) } } # [doc = "`minecraft:overworld/caves/noodle` (SIMD form, batches 4 Y values)"] # [allow (dead_code)] # [inline] fn compute_overworld__caves__noodle_4x (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , ys : f64x4 , z : f64) -> f64x4 { { let __v = { let __v = compute_y_4x (noises , cache , x , ys , z) ; let __in_mask = __v . simd_ge (f64x4 :: splat (- 60.0)) & __v . simd_lt (f64x4 :: splat (321.0)) ; if __in_mask . all () { noises . n_noodle . get_value_y_simd (x * 1.0 , ys * f64x4 :: splat (1.0) , z * 1.0 ,) } else if ! __in_mask . any () { f64x4 :: splat (- 1.0) } else { let __ir = noises . n_noodle . get_value_y_simd (x * 1.0 , ys * f64x4 :: splat (1.0) , z * 1.0 ,) ; let __or = f64x4 :: splat (- 1.0) ; __in_mask . select (__ir , __or) } } ; let __in_mask = __v . simd_ge (f64x4 :: splat (- 1000000.0)) & __v . simd_lt (f64x4 :: splat (0.0)) ; if __in_mask . all () { f64x4 :: splat (64.0) } else if ! __in_mask . any () { { let __cse_5 = compute_y_4x (noises , cache , x , ys , z) ; (({ let __v = __cse_5 ; let __in_mask = __v . simd_ge (f64x4 :: splat (- 60.0)) & __v . simd_lt (f64x4 :: splat (321.0)) ; if __in_mask . all () { ((f64x4 :: splat (- 0.07500000000000001)) + (((f64x4 :: splat (- 0.025)) * (noises . n_noodle_thickness . get_value_y_simd (x * 1.0 , ys * f64x4 :: splat (1.0) , z * 1.0 ,))))) } else if ! __in_mask . any () { f64x4 :: splat (0.0) } else { let __ir = ((f64x4 :: splat (- 0.07500000000000001)) + (((f64x4 :: splat (- 0.025)) * (noises . n_noodle_thickness . get_value_y_simd (x * 1.0 , ys * f64x4 :: splat (1.0) , z * 1.0 ,))))) ; let __or = f64x4 :: splat (0.0) ; __in_mask . select (__ir , __or) } }) + (((f64x4 :: splat (1.5)) * ({ let __cse_6 = compute_y_4x (noises , cache , x , ys , z) ; (({ let __v = __cse_6 ; let __in_mask = __v . simd_ge (f64x4 :: splat (- 60.0)) & __v . simd_lt (f64x4 :: splat (321.0)) ; if __in_mask . all () { noises . n_noodle_ridge_a . get_value_y_simd (x * 2.6666666666666665 , ys * f64x4 :: splat (2.6666666666666665) , z * 2.6666666666666665 ,) } else if ! __in_mask . any () { f64x4 :: splat (0.0) } else { let __ir = noises . n_noodle_ridge_a . get_value_y_simd (x * 2.6666666666666665 , ys * f64x4 :: splat (2.6666666666666665) , z * 2.6666666666666665 ,) ; let __or = f64x4 :: splat (0.0) ; __in_mask . select (__ir , __or) } }) . abs ()) . simd_max (({ let __v = compute_y_4x (noises , cache , x , ys , z) ; let __in_mask = __v . simd_ge (f64x4 :: splat (- 60.0)) & __v . simd_lt (f64x4 :: splat (321.0)) ; if __in_mask . all () { noises . n_noodle_ridge_b . get_value_y_simd (x * 2.6666666666666665 , ys * f64x4 :: splat (2.6666666666666665) , z * 2.6666666666666665 ,) } else if ! __in_mask . any () { f64x4 :: splat (0.0) } else { let __ir = noises . n_noodle_ridge_b . get_value_y_simd (x * 2.6666666666666665 , ys * f64x4 :: splat (2.6666666666666665) , z * 2.6666666666666665 ,) ; let __or = f64x4 :: splat (0.0) ; __in_mask . select (__ir , __or) } }) . abs ()) })))) } } else { let __ir = f64x4 :: splat (64.0) ; let __or = { let __cse_5 = compute_y_4x (noises , cache , x , ys , z) ; (({ let __v = __cse_5 ; let __in_mask = __v . simd_ge (f64x4 :: splat (- 60.0)) & __v . simd_lt (f64x4 :: splat (321.0)) ; if __in_mask . all () { ((f64x4 :: splat (- 0.07500000000000001)) + (((f64x4 :: splat (- 0.025)) * (noises . n_noodle_thickness . get_value_y_simd (x * 1.0 , ys * f64x4 :: splat (1.0) , z * 1.0 ,))))) } else if ! __in_mask . any () { f64x4 :: splat (0.0) } else { let __ir = ((f64x4 :: splat (- 0.07500000000000001)) + (((f64x4 :: splat (- 0.025)) * (noises . n_noodle_thickness . get_value_y_simd (x * 1.0 , ys * f64x4 :: splat (1.0) , z * 1.0 ,))))) ; let __or = f64x4 :: splat (0.0) ; __in_mask . select (__ir , __or) } }) + (((f64x4 :: splat (1.5)) * ({ let __cse_6 = compute_y_4x (noises , cache , x , ys , z) ; (({ let __v = __cse_6 ; let __in_mask = __v . simd_ge (f64x4 :: splat (- 60.0)) & __v . simd_lt (f64x4 :: splat (321.0)) ; if __in_mask . all () { noises . n_noodle_ridge_a . get_value_y_simd (x * 2.6666666666666665 , ys * f64x4 :: splat (2.6666666666666665) , z * 2.6666666666666665 ,) } else if ! __in_mask . any () { f64x4 :: splat (0.0) } else { let __ir = noises . n_noodle_ridge_a . get_value_y_simd (x * 2.6666666666666665 , ys * f64x4 :: splat (2.6666666666666665) , z * 2.6666666666666665 ,) ; let __or = f64x4 :: splat (0.0) ; __in_mask . select (__ir , __or) } }) . abs ()) . simd_max (({ let __v = compute_y_4x (noises , cache , x , ys , z) ; let __in_mask = __v . simd_ge (f64x4 :: splat (- 60.0)) & __v . simd_lt (f64x4 :: splat (321.0)) ; if __in_mask . all () { noises . n_noodle_ridge_b . get_value_y_simd (x * 2.6666666666666665 , ys * f64x4 :: splat (2.6666666666666665) , z * 2.6666666666666665 ,) } else if ! __in_mask . any () { f64x4 :: splat (0.0) } else { let __ir = noises . n_noodle_ridge_b . get_value_y_simd (x * 2.6666666666666665 , ys * f64x4 :: splat (2.6666666666666665) , z * 2.6666666666666665 ,) ; let __or = f64x4 :: splat (0.0) ; __in_mask . select (__ir , __or) } }) . abs ()) })))) } ; __in_mask . select (__ir , __or) } } } # [doc = "`minecraft:overworld/caves/pillars` (SIMD form, batches 4 Y values)"] # [allow (dead_code)] # [inline] fn compute_overworld__caves__pillars_4x (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , ys : f64x4 , z : f64) -> f64x4 { ((((((f64x4 :: splat (2.0)) * (noises . n_pillar . get_value_y_simd (x * 25.0 , ys * f64x4 :: splat (0.3) , z * 25.0 ,)))) + (((f64x4 :: splat (- 1.0)) + (((f64x4 :: splat (- 1.0)) * (noises . n_pillar_rareness . get_value_y_simd (x * 1.0 , ys * f64x4 :: splat (1.0) , z * 1.0 ,)))))))) * ({ let __v = ((f64x4 :: splat (0.55)) + (((f64x4 :: splat (0.55)) * (noises . n_pillar_thickness . get_value_y_simd (x * 1.0 , ys * f64x4 :: splat (1.0) , z * 1.0 ,))))) ; __v * __v * __v })) } # [doc = "`minecraft:overworld/caves/spaghetti_2d_thickness_modulator` (SIMD form, batches 4 Y values)"] # [allow (dead_code)] # [inline] fn compute_overworld__caves__spaghetti_2d_thickness_modulator_4x (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , ys : f64x4 , z : f64) -> f64x4 { ((f64x4 :: splat (- 0.95)) + (((f64x4 :: splat (- 0.35000000000000003)) * (noises . n_spaghetti_2d_thickness . get_value_y_simd (x * 2.0 , ys * f64x4 :: splat (1.0) , z * 2.0 ,))))) } # [doc = "`minecraft:overworld/caves/spaghetti_2d` (SIMD form, batches 4 Y values)"] # [allow (dead_code)] # [inline] fn compute_overworld__caves__spaghetti_2d_4x (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , ys : f64x4 , z : f64) -> f64x4 { ({ let __cse_7 = compute_overworld__caves__spaghetti_2d_thickness_modulator_4x (noises , cache , x , ys , z) ; (((({ let __ys_arr = ys . to_array () ; let __r0 = { # [allow (clippy :: cast_possible_truncation)] let y = __ys_arr [0] ; { let v = noises . n_spaghetti_2d_modulator . get_value (x * 2.0 , y * 1.0 , z * 2.0) ; if v < - 0.75 { ((0.5) * (noises . n_spaghetti_2d . get_value (x * 2.0 , y * 2.0 , z * 2.0))) } else { if v < - 0.5 { ((0.75) * (noises . n_spaghetti_2d . get_value (x * 1.3333333333333333 , y * 1.3333333333333333 , z * 1.3333333333333333))) } else { if v < 0.5 { ((1.0) * (noises . n_spaghetti_2d . get_value (x * 1.0 , y * 1.0 , z * 1.0))) } else { if v < 0.75 { ((2.0) * (noises . n_spaghetti_2d . get_value (x * 0.5 , y * 0.5 , z * 0.5))) } else { ((3.0) * (noises . n_spaghetti_2d . get_value (x * 0.3333333333333333 , y * 0.3333333333333333 , z * 0.3333333333333333))) } } } } } } ; let __r1 = { # [allow (clippy :: cast_possible_truncation)] let y = __ys_arr [1] ; { let v = noises . n_spaghetti_2d_modulator . get_value (x * 2.0 , y * 1.0 , z * 2.0) ; if v < - 0.75 { ((0.5) * (noises . n_spaghetti_2d . get_value (x * 2.0 , y * 2.0 , z * 2.0))) } else { if v < - 0.5 { ((0.75) * (noises . n_spaghetti_2d . get_value (x * 1.3333333333333333 , y * 1.3333333333333333 , z * 1.3333333333333333))) } else { if v < 0.5 { ((1.0) * (noises . n_spaghetti_2d . get_value (x * 1.0 , y * 1.0 , z * 1.0))) } else { if v < 0.75 { ((2.0) * (noises . n_spaghetti_2d . get_value (x * 0.5 , y * 0.5 , z * 0.5))) } else { ((3.0) * (noises . n_spaghetti_2d . get_value (x * 0.3333333333333333 , y * 0.3333333333333333 , z * 0.3333333333333333))) } } } } } } ; let __r2 = { # [allow (clippy :: cast_possible_truncation)] let y = __ys_arr [2] ; { let v = noises . n_spaghetti_2d_modulator . get_value (x * 2.0 , y * 1.0 , z * 2.0) ; if v < - 0.75 { ((0.5) * (noises . n_spaghetti_2d . get_value (x * 2.0 , y * 2.0 , z * 2.0))) } else { if v < - 0.5 { ((0.75) * (noises . n_spaghetti_2d . get_value (x * 1.3333333333333333 , y * 1.3333333333333333 , z * 1.3333333333333333))) } else { if v < 0.5 { ((1.0) * (noises . n_spaghetti_2d . get_value (x * 1.0 , y * 1.0 , z * 1.0))) } else { if v < 0.75 { ((2.0) * (noises . n_spaghetti_2d . get_value (x * 0.5 , y * 0.5 , z * 0.5))) } else { ((3.0) * (noises . n_spaghetti_2d . get_value (x * 0.3333333333333333 , y * 0.3333333333333333 , z * 0.3333333333333333))) } } } } } } ; let __r3 = { # [allow (clippy :: cast_possible_truncation)] let y = __ys_arr [3] ; { let v = noises . n_spaghetti_2d_modulator . get_value (x * 2.0 , y * 1.0 , z * 2.0) ; if v < - 0.75 { ((0.5) * (noises . n_spaghetti_2d . get_value (x * 2.0 , y * 2.0 , z * 2.0))) } else { if v < - 0.5 { ((0.75) * (noises . n_spaghetti_2d . get_value (x * 1.3333333333333333 , y * 1.3333333333333333 , z * 1.3333333333333333))) } else { if v < 0.5 { ((1.0) * (noises . n_spaghetti_2d . get_value (x * 1.0 , y * 1.0 , z * 1.0))) } else { if v < 0.75 { ((2.0) * (noises . n_spaghetti_2d . get_value (x * 0.5 , y * 0.5 , z * 0.5))) } else { ((3.0) * (noises . n_spaghetti_2d . get_value (x * 0.3333333333333333 , y * 0.3333333333333333 , z * 0.3333333333333333))) } } } } } } ; f64x4 :: from_array ([__r0 , __r1 , __r2 , __r3]) }) . abs ()) + (((f64x4 :: splat (0.083)) * (__cse_7))))) . simd_max ({ let __v = (((((((f64x4 :: splat (0.0)) + (((f64x4 :: splat (8.0)) * (f64x4 :: splat (cache . inline_noise_0)))))) + ({ let __t = (ys - f64x4 :: splat (- 64.0)) / f64x4 :: splat (320.0 - - 64.0) ; let __min = f64x4 :: splat (8.0) ; let __max = f64x4 :: splat (- 40.0) ; let __lerped = __min + __t * (__max - __min) ; let __below = __t . simd_lt (f64x4 :: splat (0.0)) ; let __above = __t . simd_gt (f64x4 :: splat (1.0)) ; let __r = __above . select (__max , __lerped) ; __below . select (__min , __r) }))) . abs ()) + (__cse_7)) ; __v * __v * __v }) }) . simd_max (f64x4 :: splat (- 1.0)) . simd_min (f64x4 :: splat (1.0)) } # [doc = "`minecraft:overworld/depth` (SIMD form, batches 4 Y values)"] # [allow (dead_code)] # [inline] fn compute_overworld__depth_4x (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , ys : f64x4 , z : f64) -> f64x4 { (({ let __t = (ys - f64x4 :: splat (- 64.0)) / f64x4 :: splat (320.0 - - 64.0) ; let __min = f64x4 :: splat (1.5) ; let __max = f64x4 :: splat (- 1.5) ; let __lerped = __min + __t * (__max - __min) ; let __below = __t . simd_lt (f64x4 :: splat (0.0)) ; let __above = __t . simd_gt (f64x4 :: splat (1.0)) ; let __r = __above . select (__max , __lerped) ; __below . select (__min , __r) }) + (f64x4 :: splat (cache . df_overworld__offset))) } # [doc = "`minecraft:overworld/sloped_cheese` (SIMD form, batches 4 Y values)"] # [allow (dead_code)] # [inline] fn compute_overworld__sloped_cheese_4x (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , ys : f64x4 , z : f64) -> f64x4 { ((((f64x4 :: splat (4.0)) * ({ let __v = ((((compute_overworld__depth_4x (noises , cache , x , ys , z)) + (((f64x4 :: splat (cache . df_overworld__jaggedness)) * ({ let __v = f64x4 :: splat (cache . inline_noise_1) ; let __mask = __v . simd_gt (f64x4 :: splat (0.0)) ; __mask . select (__v , __v * f64x4 :: splat (0.5)) }))))) * (f64x4 :: splat (cache . df_overworld__factor))) ; let __mask = __v . simd_gt (f64x4 :: splat (0.0)) ; __mask . select (__v , __v * f64x4 :: splat (0.25)) }))) + (compute_overworld__base_3d_noise_4x (noises , cache , x , ys , z))) } # [doc = "Noise router entry: `barrier`"] # [inline] pub fn router_barrier (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , y : f64 , z : f64) -> f64 { let x = cache . x as f64 ; let z = cache . z as f64 ; noises . n_aquifer_barrier . get_value (x * 1.0 , y * 0.5 , z * 1.0) } # [inline] fn compute_router_continentalness (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , z : f64) -> f64 { cache . df_overworld__continents } # [doc = "Noise router entry: `continentalness`"] # [inline] pub fn router_continentalness (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , y : f64 , z : f64) -> f64 { cache . router_continentalness } # [doc = "Noise router entry: `depth`"] # [inline] pub fn router_depth (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , y : f64 , z : f64) -> f64 { let x = cache . x as f64 ; let z = cache . z as f64 ; compute_overworld__depth (noises , cache , x , y , z) } # [inline] fn compute_router_erosion (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , z : f64) -> f64 { cache . df_overworld__erosion } # [doc = "Noise router entry: `erosion`"] # [inline] pub fn router_erosion (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , y : f64 , z : f64) -> f64 { cache . router_erosion } # [doc = "Noise router entry: `final_density`"] # [inline] pub fn router_final_density (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , y : f64 , z : f64) -> f64 { let x = cache . x as f64 ; let z = cache . z as f64 ; { let __sc_a = { let c = clamp (((0.64) * (((0.1171875) + (((map_clamped (y , - 64.0 , - 40.0 , 0.0 , 1.0)) * (((- 0.1171875) + (((- 0.078125) + (((map_clamped (y , 240.0 , 256.0 , 1.0 , 0.0)) * (((0.078125) + ({ let __cse_8 = compute_overworld__caves__entrances (noises , cache , x , y , z) ; let __cse_9 = compute_overworld__sloped_cheese (noises , cache , x , y , z) ; let v = compute_overworld__sloped_cheese (noises , cache , x , y , z) ; if v >= - 1000000.0 && v < 1.5625 { { let __sc_a = __cse_9 ; let __sc_b = ((5.0) * (__cse_8)) ; if __sc_a < __sc_b { __sc_a } else { __sc_b } } } else { { let __sc_a = { let __sc_a = { let __sc_a = ((((4.0) * ({ let v = noises . n_cave_layer . get_value (x * 1.0 , y * 8.0 , z * 1.0) ; v * v }))) + (((clamp (((0.27) + (noises . n_cave_cheese . get_value (x * 1.0 , y * 0.6666666666666666 , z * 1.0))) , - 1.0 , 1.0)) + (clamp (((1.5) + (((- 0.64) * (__cse_9)))) , 0.0 , 0.5))))) ; let __sc_b = __cse_8 ; if __sc_a < __sc_b { __sc_a } else { __sc_b } } ; let __sc_b = ((compute_overworld__caves__spaghetti_2d (noises , cache , x , y , z)) + (compute_overworld__caves__spaghetti_roughness_function (noises , cache , x , y , z))) ; if __sc_a < __sc_b { __sc_a } else { __sc_b } } ; let __sc_b = { let v = compute_overworld__caves__pillars (noises , cache , x , y , z) ; if v >= - 1000000.0 && v < 0.03 { - 1000000.0 } else { v } } ; if __sc_a > __sc_b { __sc_a } else { __sc_b } } } })))))))))))))) , - 1.0 , 1.0) ; c / 2.0 - c * c * c / 24.0 } ; let __sc_b = compute_overworld__caves__noodle (noises , cache , x , y , z) ; if __sc_a < __sc_b { __sc_a } else { __sc_b } } } # [doc = "Noise router entry: `fluid_level_floodedness`"] # [inline] pub fn router_fluid_level_floodedness (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , y : f64 , z : f64) -> f64 { let x = cache . x as f64 ; let z = cache . z as f64 ; noises . n_aquifer_fluid_level_floodedness . get_value (x * 1.0 , y * 0.67 , z * 1.0) } # [doc = "Noise router entry: `fluid_level_spread`"] # [inline] pub fn router_fluid_level_spread (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , y : f64 , z : f64) -> f64 { let x = cache . x as f64 ; let z = cache . z as f64 ; noises . n_aquifer_fluid_level_spread . get_value (x * 1.0 , y * 0.7142857142857143 , z * 1.0) } # [doc = "Noise router entry: `lava`"] # [inline] pub fn router_lava (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , y : f64 , z : f64) -> f64 { let x = cache . x as f64 ; let z = cache . z as f64 ; noises . n_aquifer_lava . get_value (x * 1.0 , y * 1.0 , z * 1.0) } # [inline] fn compute_router_preliminary_surface_level (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , z : f64) -> f64 { { let __upper = clamp (((128.0) + (((- 128.0) * (((((0.2734375) * ((1.0 / (cache . df_overworld__factor))))) + (((- 1.0) * (cache . df_overworld__offset)))))))) , - 40.0 , 320.0) ; let __top_y = (__upper / 8.0) . floor () * 8.0 ; if __top_y <= - 64.0 { - 64.0 } else { let mut __result = - 64.0 ; let mut y = __top_y ; while y >= - 64.0 { let __d = ((- 0.390625) + (((0.1171875) + (((map_clamped (y , - 64.0 , - 40.0 , 0.0 , 1.0)) * (((- 0.1171875) + (((- 0.078125) + (((map_clamped (y , 240.0 , 256.0 , 1.0 , 0.0)) * (((0.078125) + (clamp (((- 0.703125) + (((4.0) * ({ let v = ((((map_clamped (y , - 64.0 , 320.0 , 1.5 , - 1.5)) + (cache . df_overworld__offset))) * (cache . df_overworld__factor)) ; if v > 0.0 { v } else { v * 0.25 } })))) , - 64.0 , 64.0))))))))))))))) ; if __d > 0.0 { __result = y ; break ; } y -= 8.0 ; } __result } } } # [doc = "Noise router entry: `preliminary_surface_level`"] # [inline] pub fn router_preliminary_surface_level (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , y : f64 , z : f64) -> f64 { cache . router_preliminary_surface_level } # [inline] fn compute_router_ridges (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , z : f64) -> f64 { cache . df_overworld__ridges } # [doc = "Noise router entry: `ridges`"] # [inline] pub fn router_ridges (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , y : f64 , z : f64) -> f64 { cache . router_ridges } # [inline] fn compute_router_temperature (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , z : f64) -> f64 { { let dx = cache . df_shift_x ; let dz = cache . df_shift_z ; noises . n_temperature . get_value_xz (x * 0.25 + dx , z * 0.25 + dz ,) } } # [doc = "Noise router entry: `temperature`"] # [inline] pub fn router_temperature (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , y : f64 , z : f64) -> f64 { cache . router_temperature } # [inline] fn compute_router_vegetation (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , z : f64) -> f64 { { let dx = cache . df_shift_x ; let dz = cache . df_shift_z ; noises . n_vegetation . get_value_xz (x * 0.25 + dx , z * 0.25 + dz ,) } } # [doc = "Noise router entry: `vegetation`"] # [inline] pub fn router_vegetation (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , y : f64 , z : f64) -> f64 { cache . router_vegetation } # [doc = "Noise router entry: `vein_gap`"] # [inline] pub fn router_vein_gap (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , y : f64 , z : f64) -> f64 { let x = cache . x as f64 ; let z = cache . z as f64 ; noises . n_ore_gap . get_value (x * 1.0 , y * 1.0 , z * 1.0) } # [doc = "Noise router entry: `vein_ridged`"] # [inline] pub fn router_vein_ridged (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , y : f64 , z : f64) -> f64 { let x = cache . x as f64 ; let z = cache . z as f64 ; ((- 0.07999999821186066) + ({ let __cse_10 = compute_y (noises , cache , x , y , z) ; { let __sc_a = ({ let v = __cse_10 ; if v >= - 60.0 && v < 51.0 { noises . n_ore_vein_a . get_value (x * 4.0 , y * 4.0 , z * 4.0) } else { 0.0 } }) . abs () ; let __sc_b = ({ let v = compute_y (noises , cache , x , y , z) ; if v >= - 60.0 && v < 51.0 { noises . n_ore_vein_b . get_value (x * 4.0 , y * 4.0 , z * 4.0) } else { 0.0 } }) . abs () ; if __sc_a > __sc_b { __sc_a } else { __sc_b } } })) } # [doc = "Noise router entry: `vein_toggle`"] # [inline] pub fn router_vein_toggle (noises : & OverworldNoises , cache : & OverworldColumnCache , x : f64 , y : f64 , z : f64) -> f64 { let x = cache . x as f64 ; let z = cache . z as f64 ; { let v = compute_y (noises , cache , x , y , z) ; if v >= - 60.0 && v < 51.0 { noises . n_ore_veininess . get_value (x * 1.5 , y * 1.5 , z * 1.5) } else { 0.0 } } } # [doc = r" Total number of independently interpolated channels across all"] # [doc = r" router entries (final_density + vein_toggle + vein_ridged)."] pub const INTERPOLATED_COUNT : usize = 8 ; # [doc = r" Whether vein functions have interpolation channels."] pub const VEIN_INTERP_ENABLED : bool = true ; # [doc = r" Evaluate the inner functions of all `Interpolated` markers at a cell corner."] # [doc = r""] # [doc = r" `out` must have length `INTERPOLATED_COUNT`."] # [expect (unused_variables , reason = "generated function has a fixed signature; blended_noise_value is unused in dimensions without blended noise")] pub fn fill_cell_corner_densities (noises : & OverworldNoises , cache : & OverworldColumnCache , x : i32 , y : i32 , z : i32 , blended_noise_value : f64 , out : & mut [f64] ,) { let x = cache . x as f64 ; let z = cache . z as f64 ; let y = y as f64 ; out [0] = ((0.64) * (((0.1171875) + (((map_clamped (y , - 64.0 , - 40.0 , 0.0 , 1.0)) * (((- 0.1171875) + (((- 0.078125) + (((map_clamped (y , 240.0 , 256.0 , 1.0 , 0.0)) * (((0.078125) + ({ let __cse_11 = compute_overworld__caves__entrances (noises , cache , x , y , z) ; let __cse_12 = ((((4.0) * ({ let v = ((((compute_overworld__depth (noises , cache , x , y , z)) + (((cache . df_overworld__jaggedness) * ({ let v = cache . inline_noise_1 ; if v > 0.0 { v } else { v * 0.5 } }))))) * (cache . df_overworld__factor)) ; if v > 0.0 { v } else { v * 0.25 } }))) + (blended_noise_value)) ; let v = ((((4.0) * ({ let v = ((((compute_overworld__depth (noises , cache , x , y , z)) + (((cache . df_overworld__jaggedness) * ({ let v = cache . inline_noise_1 ; if v > 0.0 { v } else { v * 0.5 } }))))) * (cache . df_overworld__factor)) ; if v > 0.0 { v } else { v * 0.25 } }))) + (blended_noise_value)) ; if v >= - 1000000.0 && v < 1.5625 { { let __sc_a = __cse_12 ; let __sc_b = ((5.0) * (__cse_11)) ; if __sc_a < __sc_b { __sc_a } else { __sc_b } } } else { { let __sc_a = { let __sc_a = { let __sc_a = ((((4.0) * ({ let v = noises . n_cave_layer . get_value (x * 1.0 , y * 8.0 , z * 1.0) ; v * v }))) + (((clamp (((0.27) + (noises . n_cave_cheese . get_value (x * 1.0 , y * 0.6666666666666666 , z * 1.0))) , - 1.0 , 1.0)) + (clamp (((1.5) + (((- 0.64) * (__cse_12)))) , 0.0 , 0.5))))) ; let __sc_b = __cse_11 ; if __sc_a < __sc_b { __sc_a } else { __sc_b } } ; let __sc_b = ((compute_overworld__caves__spaghetti_2d (noises , cache , x , y , z)) + (compute_overworld__caves__spaghetti_roughness_function (noises , cache , x , y , z))) ; if __sc_a < __sc_b { __sc_a } else { __sc_b } } ; let __sc_b = { let v = compute_overworld__caves__pillars (noises , cache , x , y , z) ; if v >= - 1000000.0 && v < 0.03 { - 1000000.0 } else { v } } ; if __sc_a > __sc_b { __sc_a } else { __sc_b } } } })))))))))))))) ; out [1] = { let v = compute_y (noises , cache , x , y , z) ; if v >= - 60.0 && v < 321.0 { noises . n_noodle . get_value (x * 1.0 , y * 1.0 , z * 1.0) } else { - 1.0 } } ; out [2] = { let v = compute_y (noises , cache , x , y , z) ; if v >= - 60.0 && v < 321.0 { ((- 0.07500000000000001) + (((- 0.025) * (noises . n_noodle_thickness . get_value (x * 1.0 , y * 1.0 , z * 1.0))))) } else { 0.0 } } ; out [3] = { let v = compute_y (noises , cache , x , y , z) ; if v >= - 60.0 && v < 321.0 { noises . n_noodle_ridge_a . get_value (x * 2.6666666666666665 , y * 2.6666666666666665 , z * 2.6666666666666665) } else { 0.0 } } ; out [4] = { let v = compute_y (noises , cache , x , y , z) ; if v >= - 60.0 && v < 321.0 { noises . n_noodle_ridge_b . get_value (x * 2.6666666666666665 , y * 2.6666666666666665 , z * 2.6666666666666665) } else { 0.0 } } ; out [5] = { let v = compute_y (noises , cache , x , y , z) ; if v >= - 60.0 && v < 51.0 { noises . n_ore_veininess . get_value (x * 1.5 , y * 1.5 , z * 1.5) } else { 0.0 } } ; out [6] = { let v = compute_y (noises , cache , x , y , z) ; if v >= - 60.0 && v < 51.0 { noises . n_ore_vein_a . get_value (x * 4.0 , y * 4.0 , z * 4.0) } else { 0.0 } } ; out [7] = { let v = compute_y (noises , cache , x , y , z) ; if v >= - 60.0 && v < 51.0 { noises . n_ore_vein_b . get_value (x * 4.0 , y * 4.0 , z * 4.0) } else { 0.0 } } ; } # [doc = r" SIMD form of [`fill_cell_corner_densities`] that batches 4"] # [doc = r" cell-corner Y values at fixed `(x, z)`."] # [doc = r""] # [doc = r" `out` layout: lane-major SoA. Lane `i`'s `INTERPOLATED_COUNT`"] # [doc = r" channels live at `out[i * INTERPOLATED_COUNT..(i + 1) * INTERPOLATED_COUNT]`."] # [doc = r" `out` must have length `4 * INTERPOLATED_COUNT`."] # [doc = r""] # [doc = r" Per-lane semantics are bit-identical to four scalar"] # [doc = r" [`fill_cell_corner_densities`] calls at the same Y values."] # [expect (unused_variables , reason = "generated function has a fixed signature; not all dimensions use every parameter")] pub fn fill_cell_corner_densities_4x (noises : & OverworldNoises , cache : & OverworldColumnCache , x : i32 , ys : f64x4 , z : i32 , blended_noise_value_v : f64x4 , out : & mut [f64] ,) { let x = cache . x as f64 ; let z = cache . z as f64 ; { let __r = ((f64x4 :: splat (0.64)) * (((f64x4 :: splat (0.1171875)) + ((({ let __t = (ys - f64x4 :: splat (- 64.0)) / f64x4 :: splat (- 40.0 - - 64.0) ; let __min = f64x4 :: splat (0.0) ; let __max = f64x4 :: splat (1.0) ; let __lerped = __min + __t * (__max - __min) ; let __below = __t . simd_lt (f64x4 :: splat (0.0)) ; let __above = __t . simd_gt (f64x4 :: splat (1.0)) ; let __r = __above . select (__max , __lerped) ; __below . select (__min , __r) }) * (((f64x4 :: splat (- 0.1171875)) + (((f64x4 :: splat (- 0.078125)) + ((({ let __t = (ys - f64x4 :: splat (240.0)) / f64x4 :: splat (256.0 - 240.0) ; let __min = f64x4 :: splat (1.0) ; let __max = f64x4 :: splat (0.0) ; let __lerped = __min + __t * (__max - __min) ; let __below = __t . simd_lt (f64x4 :: splat (0.0)) ; let __above = __t . simd_gt (f64x4 :: splat (1.0)) ; let __r = __above . select (__max , __lerped) ; __below . select (__min , __r) }) * (((f64x4 :: splat (0.078125)) + ({ let __v = ((((f64x4 :: splat (4.0)) * ({ let __v = ((((compute_overworld__depth_4x (noises , cache , x , ys , z)) + (((f64x4 :: splat (cache . df_overworld__jaggedness)) * ({ let __v = f64x4 :: splat (cache . inline_noise_1) ; let __mask = __v . simd_gt (f64x4 :: splat (0.0)) ; __mask . select (__v , __v * f64x4 :: splat (0.5)) }))))) * (f64x4 :: splat (cache . df_overworld__factor))) ; let __mask = __v . simd_gt (f64x4 :: splat (0.0)) ; __mask . select (__v , __v * f64x4 :: splat (0.25)) }))) + (blended_noise_value_v)) ; let __cse_13 = compute_overworld__caves__entrances_4x (noises , cache , x , ys , z) ; let __cse_14 = ((((f64x4 :: splat (4.0)) * ({ let __v = ((((compute_overworld__depth_4x (noises , cache , x , ys , z)) + (((f64x4 :: splat (cache . df_overworld__jaggedness)) * ({ let __v = f64x4 :: splat (cache . inline_noise_1) ; let __mask = __v . simd_gt (f64x4 :: splat (0.0)) ; __mask . select (__v , __v * f64x4 :: splat (0.5)) }))))) * (f64x4 :: splat (cache . df_overworld__factor))) ; let __mask = __v . simd_gt (f64x4 :: splat (0.0)) ; __mask . select (__v , __v * f64x4 :: splat (0.25)) }))) + (blended_noise_value_v)) ; let __in_mask = __v . simd_ge (f64x4 :: splat (- 1000000.0)) & __v . simd_lt (f64x4 :: splat (1.5625)) ; if __in_mask . all () { (__cse_14) . simd_min (((f64x4 :: splat (5.0)) * (__cse_13))) } else if ! __in_mask . any () { (((((((f64x4 :: splat (4.0)) * ({ let __v = noises . n_cave_layer . get_value_y_simd (x * 1.0 , ys * f64x4 :: splat (8.0) , z * 1.0 ,) ; __v * __v }))) + ((((((f64x4 :: splat (0.27)) + (noises . n_cave_cheese . get_value_y_simd (x * 1.0 , ys * f64x4 :: splat (0.6666666666666666) , z * 1.0 ,)))) . simd_max (f64x4 :: splat (- 1.0)) . simd_min (f64x4 :: splat (1.0))) + ((((f64x4 :: splat (1.5)) + (((f64x4 :: splat (- 0.64)) * (__cse_14))))) . simd_max (f64x4 :: splat (0.0)) . simd_min (f64x4 :: splat (0.5))))))) . simd_min (__cse_13)) . simd_min (((compute_overworld__caves__spaghetti_2d_4x (noises , cache , x , ys , z)) + (compute_overworld__caves__spaghetti_roughness_function_4x (noises , cache , x , ys , z))))) . simd_max ({ let __v = compute_overworld__caves__pillars_4x (noises , cache , x , ys , z) ; let __in_mask = __v . simd_ge (f64x4 :: splat (- 1000000.0)) & __v . simd_lt (f64x4 :: splat (0.03)) ; if __in_mask . all () { f64x4 :: splat (- 1000000.0) } else if ! __in_mask . any () { __v } else { let __ir = f64x4 :: splat (- 1000000.0) ; let __or = __v ; __in_mask . select (__ir , __or) } }) } else { let __ir = (__cse_14) . simd_min (((f64x4 :: splat (5.0)) * (__cse_13))) ; let __or = (((((((f64x4 :: splat (4.0)) * ({ let __v = noises . n_cave_layer . get_value_y_simd (x * 1.0 , ys * f64x4 :: splat (8.0) , z * 1.0 ,) ; __v * __v }))) + ((((((f64x4 :: splat (0.27)) + (noises . n_cave_cheese . get_value_y_simd (x * 1.0 , ys * f64x4 :: splat (0.6666666666666666) , z * 1.0 ,)))) . simd_max (f64x4 :: splat (- 1.0)) . simd_min (f64x4 :: splat (1.0))) + ((((f64x4 :: splat (1.5)) + (((f64x4 :: splat (- 0.64)) * (__cse_14))))) . simd_max (f64x4 :: splat (0.0)) . simd_min (f64x4 :: splat (0.5))))))) . simd_min (__cse_13)) . simd_min (((compute_overworld__caves__spaghetti_2d_4x (noises , cache , x , ys , z)) + (compute_overworld__caves__spaghetti_roughness_function_4x (noises , cache , x , ys , z))))) . simd_max ({ let __v = compute_overworld__caves__pillars_4x (noises , cache , x , ys , z) ; let __in_mask = __v . simd_ge (f64x4 :: splat (- 1000000.0)) & __v . simd_lt (f64x4 :: splat (0.03)) ; if __in_mask . all () { f64x4 :: splat (- 1000000.0) } else if ! __in_mask . any () { __v } else { let __ir = f64x4 :: splat (- 1000000.0) ; let __or = __v ; __in_mask . select (__ir , __or) } }) ; __in_mask . select (__ir , __or) } })))))))))))))) ; out [0] = __r [0] ; out [0 + INTERPOLATED_COUNT] = __r [1] ; out [0 + 2 * INTERPOLATED_COUNT] = __r [2] ; out [0 + 3 * INTERPOLATED_COUNT] = __r [3] ; } { let __r = { let __v = compute_y_4x (noises , cache , x , ys , z) ; let __in_mask = __v . simd_ge (f64x4 :: splat (- 60.0)) & __v . simd_lt (f64x4 :: splat (321.0)) ; if __in_mask . all () { noises . n_noodle . get_value_y_simd (x * 1.0 , ys * f64x4 :: splat (1.0) , z * 1.0 ,) } else if ! __in_mask . any () { f64x4 :: splat (- 1.0) } else { let __ir = noises . n_noodle . get_value_y_simd (x * 1.0 , ys * f64x4 :: splat (1.0) , z * 1.0 ,) ; let __or = f64x4 :: splat (- 1.0) ; __in_mask . select (__ir , __or) } } ; out [1] = __r [0] ; out [1 + INTERPOLATED_COUNT] = __r [1] ; out [1 + 2 * INTERPOLATED_COUNT] = __r [2] ; out [1 + 3 * INTERPOLATED_COUNT] = __r [3] ; } { let __r = { let __v = compute_y_4x (noises , cache , x , ys , z) ; let __in_mask = __v . simd_ge (f64x4 :: splat (- 60.0)) & __v . simd_lt (f64x4 :: splat (321.0)) ; if __in_mask . all () { ((f64x4 :: splat (- 0.07500000000000001)) + (((f64x4 :: splat (- 0.025)) * (noises . n_noodle_thickness . get_value_y_simd (x * 1.0 , ys * f64x4 :: splat (1.0) , z * 1.0 ,))))) } else if ! __in_mask . any () { f64x4 :: splat (0.0) } else { let __ir = ((f64x4 :: splat (- 0.07500000000000001)) + (((f64x4 :: splat (- 0.025)) * (noises . n_noodle_thickness . get_value_y_simd (x * 1.0 , ys * f64x4 :: splat (1.0) , z * 1.0 ,))))) ; let __or = f64x4 :: splat (0.0) ; __in_mask . select (__ir , __or) } } ; out [2] = __r [0] ; out [2 + INTERPOLATED_COUNT] = __r [1] ; out [2 + 2 * INTERPOLATED_COUNT] = __r [2] ; out [2 + 3 * INTERPOLATED_COUNT] = __r [3] ; } { let __r = { let __v = compute_y_4x (noises , cache , x , ys , z) ; let __in_mask = __v . simd_ge (f64x4 :: splat (- 60.0)) & __v . simd_lt (f64x4 :: splat (321.0)) ; if __in_mask . all () { noises . n_noodle_ridge_a . get_value_y_simd (x * 2.6666666666666665 , ys * f64x4 :: splat (2.6666666666666665) , z * 2.6666666666666665 ,) } else if ! __in_mask . any () { f64x4 :: splat (0.0) } else { let __ir = noises . n_noodle_ridge_a . get_value_y_simd (x * 2.6666666666666665 , ys * f64x4 :: splat (2.6666666666666665) , z * 2.6666666666666665 ,) ; let __or = f64x4 :: splat (0.0) ; __in_mask . select (__ir , __or) } } ; out [3] = __r [0] ; out [3 + INTERPOLATED_COUNT] = __r [1] ; out [3 + 2 * INTERPOLATED_COUNT] = __r [2] ; out [3 + 3 * INTERPOLATED_COUNT] = __r [3] ; } { let __r = { let __v = compute_y_4x (noises , cache , x , ys , z) ; let __in_mask = __v . simd_ge (f64x4 :: splat (- 60.0)) & __v . simd_lt (f64x4 :: splat (321.0)) ; if __in_mask . all () { noises . n_noodle_ridge_b . get_value_y_simd (x * 2.6666666666666665 , ys * f64x4 :: splat (2.6666666666666665) , z * 2.6666666666666665 ,) } else if ! __in_mask . any () { f64x4 :: splat (0.0) } else { let __ir = noises . n_noodle_ridge_b . get_value_y_simd (x * 2.6666666666666665 , ys * f64x4 :: splat (2.6666666666666665) , z * 2.6666666666666665 ,) ; let __or = f64x4 :: splat (0.0) ; __in_mask . select (__ir , __or) } } ; out [4] = __r [0] ; out [4 + INTERPOLATED_COUNT] = __r [1] ; out [4 + 2 * INTERPOLATED_COUNT] = __r [2] ; out [4 + 3 * INTERPOLATED_COUNT] = __r [3] ; } { let __r = { let __v = compute_y_4x (noises , cache , x , ys , z) ; let __in_mask = __v . simd_ge (f64x4 :: splat (- 60.0)) & __v . simd_lt (f64x4 :: splat (51.0)) ; if __in_mask . all () { noises . n_ore_veininess . get_value_y_simd (x * 1.5 , ys * f64x4 :: splat (1.5) , z * 1.5 ,) } else if ! __in_mask . any () { f64x4 :: splat (0.0) } else { let __ir = noises . n_ore_veininess . get_value_y_simd (x * 1.5 , ys * f64x4 :: splat (1.5) , z * 1.5 ,) ; let __or = f64x4 :: splat (0.0) ; __in_mask . select (__ir , __or) } } ; out [5] = __r [0] ; out [5 + INTERPOLATED_COUNT] = __r [1] ; out [5 + 2 * INTERPOLATED_COUNT] = __r [2] ; out [5 + 3 * INTERPOLATED_COUNT] = __r [3] ; } { let __r = { let __v = compute_y_4x (noises , cache , x , ys , z) ; let __in_mask = __v . simd_ge (f64x4 :: splat (- 60.0)) & __v . simd_lt (f64x4 :: splat (51.0)) ; if __in_mask . all () { noises . n_ore_vein_a . get_value_y_simd (x * 4.0 , ys * f64x4 :: splat (4.0) , z * 4.0 ,) } else if ! __in_mask . any () { f64x4 :: splat (0.0) } else { let __ir = noises . n_ore_vein_a . get_value_y_simd (x * 4.0 , ys * f64x4 :: splat (4.0) , z * 4.0 ,) ; let __or = f64x4 :: splat (0.0) ; __in_mask . select (__ir , __or) } } ; out [6] = __r [0] ; out [6 + INTERPOLATED_COUNT] = __r [1] ; out [6 + 2 * INTERPOLATED_COUNT] = __r [2] ; out [6 + 3 * INTERPOLATED_COUNT] = __r [3] ; } { let __r = { let __v = compute_y_4x (noises , cache , x , ys , z) ; let __in_mask = __v . simd_ge (f64x4 :: splat (- 60.0)) & __v . simd_lt (f64x4 :: splat (51.0)) ; if __in_mask . all () { noises . n_ore_vein_b . get_value_y_simd (x * 4.0 , ys * f64x4 :: splat (4.0) , z * 4.0 ,) } else if ! __in_mask . any () { f64x4 :: splat (0.0) } else { let __ir = noises . n_ore_vein_b . get_value_y_simd (x * 4.0 , ys * f64x4 :: splat (4.0) , z * 4.0 ,) ; let __or = f64x4 :: splat (0.0) ; __in_mask . select (__ir , __or) } } ; out [7] = __r [0] ; out [7 + INTERPOLATED_COUNT] = __r [1] ; out [7 + 2 * INTERPOLATED_COUNT] = __r [2] ; out [7 + 3 * INTERPOLATED_COUNT] = __r [3] ; } } # [doc = r" Combine interpolated values for `final_density`."] # [expect (unused_variables , reason = "generated function has a fixed signature; not all parameters are used in every dimension")] pub fn combine_interpolated (noises : & OverworldNoises , cache : & OverworldColumnCache , interpolated : & [f64] , _x : i32 , y : i32 , _z : i32 ,) -> f64 { let x = cache . x as f64 ; let z = cache . z as f64 ; let y = y as f64 ; { let __sc_a = { let c = clamp (interpolated [0] , - 1.0 , 1.0) ; c / 2.0 - c * c * c / 24.0 } ; let __sc_b = { let v = interpolated [1] ; if v >= - 1000000.0 && v < 0.0 { 64.0 } else { ((interpolated [2]) + (((1.5) * ({ let __sc_a = (interpolated [3]) . abs () ; let __sc_b = (interpolated [4]) . abs () ; if __sc_a > __sc_b { __sc_a } else { __sc_b } })))) } } ; if __sc_a < __sc_b { __sc_a } else { __sc_b } } } # [doc = r" Combine interpolated values for `vein_toggle`."] # [expect (unused_variables , reason = "generated function has a fixed signature; not all parameters are used in every dimension")] pub fn combine_vein_toggle (noises : & OverworldNoises , cache : & OverworldColumnCache , interpolated : & [f64] , _x : i32 , y : i32 , _z : i32 ,) -> f64 { let x = cache . x as f64 ; let z = cache . z as f64 ; let y = y as f64 ; interpolated [5] } # [doc = r" Combine interpolated values for `vein_ridged`."] # [expect (unused_variables , reason = "generated function has a fixed signature; not all parameters are used in every dimension")] pub fn combine_vein_ridged (noises : & OverworldNoises , cache : & OverworldColumnCache , interpolated : & [f64] , _x : i32 , y : i32 , _z : i32 ,) -> f64 { let x = cache . x as f64 ; let z = cache . z as f64 ; let y = y as f64 ; ((- 0.07999999821186066) + ({ let __sc_a = (interpolated [6]) . abs () ; let __sc_b = (interpolated [7]) . abs () ; if __sc_a > __sc_b { __sc_a } else { __sc_b } })) } # [doc = r" Noise settings for this dimension, parsed from the datapack."] pub struct OverworldNoiseSettings ; impl OverworldNoiseSettings { # [doc = r" Minimum Y coordinate for this dimension."] pub const MIN_Y : i32 = - 64i32 ; # [doc = r" Total height of the world in blocks."] pub const HEIGHT : i32 = 384i32 ; # [doc = r" Sea level Y coordinate."] pub const SEA_LEVEL : i32 = 63i32 ; # [doc = r" Cell width in blocks (XZ)."] pub const CELL_WIDTH : i32 = 4i32 ; # [doc = r" Cell height in blocks (Y)."] pub const CELL_HEIGHT : i32 = 8i32 ; # [doc = r" Whether aquifers are enabled."] pub const AQUIFERS_ENABLED : bool = true ; # [doc = r" Whether ore veins are enabled."] pub const ORE_VEINS_ENABLED : bool = true ; # [doc = r" Whether this dimension uses Java's LCG random (true) or Xoroshiro (false)."] pub const LEGACY_RANDOM_SOURCE : bool = false ; # [doc = r" Get the default block state ID for this dimension."] # [inline] pub fn default_block_id () -> steel_utils :: BlockStateId { steel_registry :: REGISTRY . blocks . get_default_state_id (& steel_registry :: vanilla_blocks :: STONE) } # [doc = r" Get the default fluid state ID for this dimension."] # [inline] pub fn default_fluid_id () -> steel_utils :: BlockStateId { steel_registry :: REGISTRY . blocks . get_default_state_id (& steel_registry :: vanilla_blocks :: WATER) } } impl steel_worldgen :: density :: NoiseSettings for OverworldNoiseSettings { const MIN_Y : i32 = - 64i32 ; const HEIGHT : i32 = 384i32 ; const SEA_LEVEL : i32 = 63i32 ; const CELL_WIDTH : i32 = 4i32 ; const CELL_HEIGHT : i32 = 8i32 ; const AQUIFERS_ENABLED : bool = true ; const ORE_VEINS_ENABLED : bool = true ; const LEGACY_RANDOM_SOURCE : bool = false ; # [inline] fn default_block_id () -> steel_utils :: BlockStateId { OverworldNoiseSettings :: default_block_id () } # [inline] fn default_fluid_id () -> steel_utils :: BlockStateId { OverworldNoiseSettings :: default_fluid_id () } } impl Default for OverworldColumnCache { fn default () -> Self { Self :: new () } } impl steel_worldgen :: density :: ColumnCache for OverworldColumnCache { type Noises = OverworldNoises ; # [inline] fn ensure (& mut self , x : i32 , z : i32 , noises : & Self :: Noises) { OverworldColumnCache :: ensure (self , x , z , noises) } # [inline] fn init_grid (& mut self , chunk_block_x : i32 , chunk_block_z : i32 , noises : & Self :: Noises) { OverworldColumnCache :: init_grid (self , chunk_block_x , chunk_block_z , noises) } } impl steel_worldgen :: density :: DimensionNoises for OverworldNoises { type ColumnCache = OverworldColumnCache ; type Settings = OverworldNoiseSettings ; fn create (seed : u64 , splitter : & steel_utils :: random :: RandomSplitter , params : & rustc_hash :: FxHashMap < String , steel_worldgen :: density :: NoiseParameters > ,) -> Self { OverworldNoises :: create (seed , splitter , params) } # [inline] fn router_final_density (& self , cache : & mut Self :: ColumnCache , x : i32 , y : i32 , z : i32) -> f64 { router_final_density (self , cache , x as f64 , y as f64 , z as f64) } # [inline] fn router_depth (& self , cache : & mut Self :: ColumnCache , x : i32 , y : i32 , z : i32) -> f64 { router_depth (self , cache , x as f64 , y as f64 , z as f64) } # [inline] fn router_barrier (& self , cache : & mut Self :: ColumnCache , x : i32 , y : i32 , z : i32) -> f64 { router_barrier (self , cache , x as f64 , y as f64 , z as f64) } # [inline] fn router_fluid_level_floodedness (& self , cache : & mut Self :: ColumnCache , x : i32 , y : i32 , z : i32) -> f64 { router_fluid_level_floodedness (self , cache , x as f64 , y as f64 , z as f64) } # [inline] fn router_fluid_level_spread (& self , cache : & mut Self :: ColumnCache , x : i32 , y : i32 , z : i32) -> f64 { router_fluid_level_spread (self , cache , x as f64 , y as f64 , z as f64) } # [inline] fn router_lava (& self , cache : & mut Self :: ColumnCache , x : i32 , y : i32 , z : i32) -> f64 { router_lava (self , cache , x as f64 , y as f64 , z as f64) } # [inline] fn router_vein_toggle (& self , cache : & mut Self :: ColumnCache , x : i32 , y : i32 , z : i32) -> f64 { router_vein_toggle (self , cache , x as f64 , y as f64 , z as f64) } # [inline] fn router_vein_ridged (& self , cache : & mut Self :: ColumnCache , x : i32 , y : i32 , z : i32) -> f64 { router_vein_ridged (self , cache , x as f64 , y as f64 , z as f64) } # [inline] fn router_vein_gap (& self , cache : & mut Self :: ColumnCache , x : i32 , y : i32 , z : i32) -> f64 { router_vein_gap (self , cache , x as f64 , y as f64 , z as f64) } # [inline] fn router_erosion (& self , cache : & mut Self :: ColumnCache , x : i32 , y : i32 , z : i32) -> f64 { router_erosion (self , cache , x as f64 , y as f64 , z as f64) } # [inline] fn router_continentalness (& self , cache : & mut Self :: ColumnCache , x : i32 , y : i32 , z : i32) -> f64 { router_continentalness (self , cache , x as f64 , y as f64 , z as f64) } # [inline] fn router_temperature (& self , cache : & mut Self :: ColumnCache , x : i32 , y : i32 , z : i32) -> f64 { router_temperature (self , cache , x as f64 , y as f64 , z as f64) } # [inline] fn router_vegetation (& self , cache : & mut Self :: ColumnCache , x : i32 , y : i32 , z : i32) -> f64 { router_vegetation (self , cache , x as f64 , y as f64 , z as f64) } # [inline] fn router_ridges (& self , cache : & mut Self :: ColumnCache , x : i32 , y : i32 , z : i32) -> f64 { router_ridges (self , cache , x as f64 , y as f64 , z as f64) } # [inline] fn router_preliminary_surface_level (& self , cache : & mut Self :: ColumnCache , x : i32 , y : i32 , z : i32) -> f64 { router_preliminary_surface_level (self , cache , x as f64 , y as f64 , z as f64) } # [inline] fn interpolated_count () -> usize { INTERPOLATED_COUNT } fn vein_interp_enabled () -> bool { VEIN_INTERP_ENABLED } # [inline] fn compute_noise_column (& self , x : i32 , block_ys : & [i32] , z : i32 , out : & mut [f64]) { self . blended_noise . compute_column (x , block_ys , z , out) ; } # [inline] fn fill_cell_corner_densities (& self , cache : & mut Self :: ColumnCache , x : i32 , y : i32 , z : i32 , blended_noise_value : f64 , out : & mut [f64]) { fill_cell_corner_densities (self , cache , x , y , z , blended_noise_value , out) } # [inline] fn fill_cell_corner_densities_4x (& self , cache : & mut Self :: ColumnCache , x : i32 , ys : std :: simd :: f64x4 , z : i32 , blended_noise_values : std :: simd :: f64x4 , out : & mut [f64] ,) { fill_cell_corner_densities_4x (self , cache , x , ys , z , blended_noise_values , out) } # [inline] fn combine_interpolated (& self , cache : & mut Self :: ColumnCache , interpolated : & [f64] , x : i32 , y : i32 , z : i32) -> f64 { combine_interpolated (self , cache , interpolated , x , y , z) } # [inline] fn combine_vein_toggle (& self , cache : & mut Self :: ColumnCache , interpolated : & [f64] , x : i32 , y : i32 , z : i32) -> f64 { combine_vein_toggle (self , cache , interpolated , x , y , z) } # [inline] fn combine_vein_ridged (& self , cache : & mut Self :: ColumnCache , interpolated : & [f64] , x : i32 , y : i32 , z : i32) -> f64 { combine_vein_ridged (self , cache , interpolated , x , y , z) } fn surface_noise_ids () -> & 'static [& 'static str] { & ["minecraft:surface" , "minecraft:surface_swamp" , "minecraft:packed_ice" , "minecraft:ice" , "minecraft:powder_snow" , "minecraft:calcite" , "minecraft:gravel" , "minecraft:sulfur_cave_gradient"] } fn surface_gradient_ids () -> & 'static [& 'static str] { & ["minecraft:bedrock_floor" , "minecraft:deepslate"] } fn surface_rule_block_states () -> & 'static [steel_utils :: BlockStateId] { { static BLOCK_STATES : std :: sync :: OnceLock < Box < [steel_utils :: BlockStateId] >> = std :: sync :: OnceLock :: new () ; BLOCK_STATES . get_or_init (|| { Box :: from ([steel_registry :: vanilla_blocks :: BEDROCK . default_state () , steel_registry :: vanilla_blocks :: COARSE_DIRT . default_state () , steel_registry :: vanilla_blocks :: GRASS_BLOCK . default_state () , steel_registry :: vanilla_blocks :: DIRT . default_state () , steel_registry :: vanilla_blocks :: WATER . default_state () , steel_registry :: vanilla_blocks :: ORANGE_TERRACOTTA . default_state () , steel_registry :: vanilla_blocks :: TERRACOTTA . default_state () , steel_registry :: vanilla_blocks :: RED_SANDSTONE . default_state () , steel_registry :: vanilla_blocks :: RED_SAND . default_state () , steel_registry :: vanilla_blocks :: WHITE_TERRACOTTA . default_state () , steel_registry :: vanilla_blocks :: STONE . default_state () , steel_registry :: vanilla_blocks :: GRAVEL . default_state () , steel_registry :: vanilla_blocks :: AIR . default_state () , steel_registry :: vanilla_blocks :: ICE . default_state () , steel_registry :: vanilla_blocks :: PACKED_ICE . default_state () , steel_registry :: vanilla_blocks :: SNOW_BLOCK . default_state () , steel_registry :: vanilla_blocks :: POWDER_SNOW . default_state () , steel_registry :: vanilla_blocks :: CALCITE . default_state () , steel_registry :: vanilla_blocks :: SANDSTONE . default_state () , steel_registry :: vanilla_blocks :: SAND . default_state () , steel_registry :: vanilla_blocks :: CINNABAR . default_state () , steel_registry :: vanilla_blocks :: SULFUR . default_state () , steel_registry :: vanilla_blocks :: PODZOL . default_state () , steel_registry :: vanilla_blocks :: MUD . default_state () , steel_registry :: vanilla_blocks :: MYCELIUM . default_state () , steel_registry :: vanilla_blocks :: DEEPSLATE . default_state ()]) }) } } fn surface_rule_uses_biome () -> bool { true } fn surface_rule_uses_preliminary_surface () -> bool { true } fn surface_rule_uses_surface_secondary () -> bool { true } fn surface_rule_uses_steep () -> bool { true } fn try_apply_surface_rule (ctx : & mut steel_worldgen :: surface :: SurfaceRuleContext < '_ > ,) -> Option < steel_utils :: BlockStateId > { Self :: apply_surface_rule_impl (ctx) } } impl OverworldNoises { # [doc = r" Apply this dimension's surface rule at the current context position."] # [allow (clippy :: collapsible_if , clippy :: needless_return , clippy :: erasing_op , unused_comparisons)] fn apply_surface_rule_impl (ctx : & mut steel_worldgen :: surface :: SurfaceRuleContext < '_ > ,) -> Option < steel_utils :: BlockStateId > { if ctx . system . vertical_gradient (0usize , ctx . block_x , ctx . block_y , ctx . block_z , - 64i32 , - 59i32) { return Some (ctx . block_state (0usize)) ; } if ctx . block_y >= ctx . min_surface_level { if ctx . stone_depth_above <= 1 + 0i32 { if ctx . biome_id () . is_some_and (| biome_id | biome_id == steel_registry :: RegistryEntry :: id (& * steel_registry :: vanilla_biomes :: WOODED_BADLANDS) as u16) { if ctx . block_y >= 97i32 + ctx . surface_depth * 2i32 { if { let v = ctx . condition_noise (0usize) ; v >= - 0.909f64 && v <= - 0.5454f64 } { return Some (ctx . block_state (1usize)) ; } if { let v = ctx . condition_noise (0usize) ; v >= - 0.1818f64 && v <= 0.1818f64 } { return Some (ctx . block_state (1usize)) ; } if { let v = ctx . condition_noise (0usize) ; v >= 0.5454f64 && v <= 0.909f64 } { return Some (ctx . block_state (1usize)) ; } if ctx . water_height == i32 :: MIN || ctx . block_y >= ctx . water_height + 0i32 + ctx . surface_depth * 0i32 { return Some (ctx . block_state (2usize)) ; } return Some (ctx . block_state (3usize)) ; } } if ctx . biome_id () . is_some_and (| biome_id | biome_id == steel_registry :: RegistryEntry :: id (& * steel_registry :: vanilla_biomes :: SWAMP) as u16) { if ctx . block_y >= 62i32 + ctx . surface_depth * 0i32 { if ! (ctx . block_y >= 63i32 + ctx . surface_depth * 0i32) { if { let v = ctx . condition_noise (1usize) ; v >= 0f64 && v <= 179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000f64 } { return Some (ctx . block_state (4usize)) ; } } } } if ctx . biome_id () . is_some_and (| biome_id | biome_id == steel_registry :: RegistryEntry :: id (& * steel_registry :: vanilla_biomes :: MANGROVE_SWAMP) as u16) { if ctx . block_y >= 60i32 + ctx . surface_depth * 0i32 { if ! (ctx . block_y >= 63i32 + ctx . surface_depth * 0i32) { if { let v = ctx . condition_noise (1usize) ; v >= 0f64 && v <= 179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000f64 } { return Some (ctx . block_state (4usize)) ; } } } } } if ctx . biome_id () . is_some_and (| biome_id | (biome_id == steel_registry :: RegistryEntry :: id (& * steel_registry :: vanilla_biomes :: BADLANDS) as u16 || biome_id == steel_registry :: RegistryEntry :: id (& * steel_registry :: vanilla_biomes :: ERODED_BADLANDS) as u16 || biome_id == steel_registry :: RegistryEntry :: id (& * steel_registry :: vanilla_biomes :: WOODED_BADLANDS) as u16)) { if ctx . stone_depth_above <= 1 + 0i32 { if ctx . block_y >= 256i32 + ctx . surface_depth * 0i32 { return Some (ctx . block_state (5usize)) ; } if ctx . block_y + ctx . stone_depth_above >= 74i32 + ctx . surface_depth * 1i32 { if { let v = ctx . condition_noise (0usize) ; v >= - 0.909f64 && v <= - 0.5454f64 } { return Some (ctx . block_state (6usize)) ; } if { let v = ctx . condition_noise (0usize) ; v >= - 0.1818f64 && v <= 0.1818f64 } { return Some (ctx . block_state (6usize)) ; } if { let v = ctx . condition_noise (0usize) ; v >= 0.5454f64 && v <= 0.909f64 } { return Some (ctx . block_state (6usize)) ; } return Some (ctx . system . get_band (ctx . block_x , ctx . block_y , ctx . block_z)) ; } if ctx . water_height == i32 :: MIN || ctx . block_y >= ctx . water_height + - 1i32 + ctx . surface_depth * 0i32 { if ctx . stone_depth_below <= 1 + 0i32 { return Some (ctx . block_state (7usize)) ; } return Some (ctx . block_state (8usize)) ; } if ! (ctx . surface_depth <= 0) { return Some (ctx . block_state (5usize)) ; } if ctx . water_height == i32 :: MIN || ctx . block_y + ctx . stone_depth_above >= ctx . water_height + - 6i32 + ctx . surface_depth * - 1i32 { return Some (ctx . block_state (9usize)) ; } if ctx . stone_depth_below <= 1 + 0i32 { return Some (ctx . block_state (10usize)) ; } return Some (ctx . block_state (11usize)) ; } if ctx . block_y + ctx . stone_depth_above >= 63i32 + ctx . surface_depth * - 1i32 { if ctx . block_y >= 63i32 + ctx . surface_depth * 0i32 { if ! (ctx . block_y + ctx . stone_depth_above >= 74i32 + ctx . surface_depth * 1i32) { return Some (ctx . block_state (5usize)) ; } } return Some (ctx . system . get_band (ctx . block_x , ctx . block_y , ctx . block_z)) ; } if ctx . stone_depth_above <= 1 + 0i32 + ctx . surface_depth { if ctx . water_height == i32 :: MIN || ctx . block_y + ctx . stone_depth_above >= ctx . water_height + - 6i32 + ctx . surface_depth * - 1i32 { return Some (ctx . block_state (9usize)) ; } } } if ctx . stone_depth_above <= 1 + 0i32 { if ctx . water_height == i32 :: MIN || ctx . block_y >= ctx . water_height + - 1i32 + ctx . surface_depth * 0i32 { if ctx . biome_id () . is_some_and (| biome_id | (biome_id == steel_registry :: RegistryEntry :: id (& * steel_registry :: vanilla_biomes :: FROZEN_OCEAN) as u16 || biome_id == steel_registry :: RegistryEntry :: id (& * steel_registry :: vanilla_biomes :: DEEP_FROZEN_OCEAN) as u16)) { if ctx . surface_depth <= 0 { if ctx . water_height == i32 :: MIN || ctx . block_y >= ctx . water_height + 0i32 + ctx . surface_depth * 0i32 { return Some (ctx . block_state (12usize)) ; } if ctx . cold_enough_to_snow () { return Some (ctx . block_state (13usize)) ; } return Some (ctx . block_state (4usize)) ; } } if ctx . biome_id () . is_some_and (| biome_id | biome_id == steel_registry :: RegistryEntry :: id (& * steel_registry :: vanilla_biomes :: FROZEN_PEAKS) as u16) { if ctx . steep { return Some (ctx . block_state (14usize)) ; } if { let v = ctx . condition_noise (2usize) ; v >= 0f64 && v <= 0.2f64 } { return Some (ctx . block_state (14usize)) ; } if { let v = ctx . condition_noise (3usize) ; v >= 0f64 && v <= 0.025f64 } { return Some (ctx . block_state (13usize)) ; } if ctx . water_height == i32 :: MIN || ctx . block_y >= ctx . water_height + 0i32 + ctx . surface_depth * 0i32 { return Some (ctx . block_state (15usize)) ; } } if ctx . biome_id () . is_some_and (| biome_id | biome_id == steel_registry :: RegistryEntry :: id (& * steel_registry :: vanilla_biomes :: SNOWY_SLOPES) as u16) { if ctx . steep { return Some (ctx . block_state (10usize)) ; } if { let v = ctx . condition_noise (4usize) ; v >= 0.35f64 && v <= 0.6f64 } { if ctx . water_height == i32 :: MIN || ctx . block_y >= ctx . water_height + 0i32 + ctx . surface_depth * 0i32 { return Some (ctx . block_state (16usize)) ; } } if ctx . water_height == i32 :: MIN || ctx . block_y >= ctx . water_height + 0i32 + ctx . surface_depth * 0i32 { return Some (ctx . block_state (15usize)) ; } } if ctx . biome_id () . is_some_and (| biome_id | biome_id == steel_registry :: RegistryEntry :: id (& * steel_registry :: vanilla_biomes :: JAGGED_PEAKS) as u16) { if ctx . steep { return Some (ctx . block_state (10usize)) ; } if ctx . water_height == i32 :: MIN || ctx . block_y >= ctx . water_height + 0i32 + ctx . surface_depth * 0i32 { return Some (ctx . block_state (15usize)) ; } } if ctx . biome_id () . is_some_and (| biome_id | biome_id == steel_registry :: RegistryEntry :: id (& * steel_registry :: vanilla_biomes :: GROVE) as u16) { if { let v = ctx . condition_noise (4usize) ; v >= 0.35f64 && v <= 0.6f64 } { if ctx . water_height == i32 :: MIN || ctx . block_y >= ctx . water_height + 0i32 + ctx . surface_depth * 0i32 { return Some (ctx . block_state (16usize)) ; } } if ctx . water_height == i32 :: MIN || ctx . block_y >= ctx . water_height + 0i32 + ctx . surface_depth * 0i32 { return Some (ctx . block_state (15usize)) ; } } if ctx . biome_id () . is_some_and (| biome_id | biome_id == steel_registry :: RegistryEntry :: id (& * steel_registry :: vanilla_biomes :: STONY_PEAKS) as u16) { if { let v = ctx . condition_noise (5usize) ; v >= - 0.0125f64 && v <= 0.0125f64 } { return Some (ctx . block_state (17usize)) ; } return Some (ctx . block_state (10usize)) ; } if ctx . biome_id () . is_some_and (| biome_id | biome_id == steel_registry :: RegistryEntry :: id (& * steel_registry :: vanilla_biomes :: STONY_SHORE) as u16) { if { let v = ctx . condition_noise (6usize) ; v >= - 0.05f64 && v <= 0.05f64 } { if ctx . stone_depth_below <= 1 + 0i32 { return Some (ctx . block_state (10usize)) ; } return Some (ctx . block_state (11usize)) ; } return Some (ctx . block_state (10usize)) ; } if ctx . biome_id () . is_some_and (| biome_id | biome_id == steel_registry :: RegistryEntry :: id (& * steel_registry :: vanilla_biomes :: WINDSWEPT_HILLS) as u16) { if { let v = ctx . condition_noise (0usize) ; v >= 0.12121212121212122f64 && v <= 179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000f64 } { return Some (ctx . block_state (10usize)) ; } } if ctx . biome_id () . is_some_and (| biome_id | (biome_id == steel_registry :: RegistryEntry :: id (& * steel_registry :: vanilla_biomes :: WARM_OCEAN) as u16 || biome_id == steel_registry :: RegistryEntry :: id (& * steel_registry :: vanilla_biomes :: BEACH) as u16 || biome_id == steel_registry :: RegistryEntry :: id (& * steel_registry :: vanilla_biomes :: SNOWY_BEACH) as u16)) { if ctx . stone_depth_below <= 1 + 0i32 { return Some (ctx . block_state (18usize)) ; } return Some (ctx . block_state (19usize)) ; } if ctx . biome_id () . is_some_and (| biome_id | biome_id == steel_registry :: RegistryEntry :: id (& * steel_registry :: vanilla_biomes :: DESERT) as u16) { if ctx . stone_depth_below <= 1 + 0i32 { return Some (ctx . block_state (18usize)) ; } return Some (ctx . block_state (19usize)) ; } if ctx . biome_id () . is_some_and (| biome_id | biome_id == steel_registry :: RegistryEntry :: id (& * steel_registry :: vanilla_biomes :: DRIPSTONE_CAVES) as u16) { return Some (ctx . block_state (10usize)) ; } if ctx . biome_id () . is_some_and (| biome_id | biome_id == steel_registry :: RegistryEntry :: id (& * steel_registry :: vanilla_biomes :: SULFUR_CAVES) as u16) { if { let v = ctx . condition_noise_3d (7usize) ; v >= - 0.4000000059604645f64 && v <= - 0.10000000149011612f64 } { return Some (ctx . block_state (20usize)) ; } if { let v = ctx . condition_noise_3d (7usize) ; v >= 0f64 && v <= 0.4000000059604645f64 } { return Some (ctx . block_state (21usize)) ; } if { let v = ctx . condition_noise_3d (7usize) ; v >= 0.4000000059604645f64 && v <= 179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000f64 } { return Some (ctx . block_state (20usize)) ; } return Some (ctx . block_state (10usize)) ; } if ctx . biome_id () . is_some_and (| biome_id | biome_id == steel_registry :: RegistryEntry :: id (& * steel_registry :: vanilla_biomes :: WINDSWEPT_SAVANNA) as u16) { if { let v = ctx . condition_noise (0usize) ; v >= 0.21212121212121213f64 && v <= 179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000f64 } { return Some (ctx . block_state (10usize)) ; } if { let v = ctx . condition_noise (0usize) ; v >= - 0.06060606060606061f64 && v <= 179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000f64 } { return Some (ctx . block_state (1usize)) ; } } if ctx . biome_id () . is_some_and (| biome_id | biome_id == steel_registry :: RegistryEntry :: id (& * steel_registry :: vanilla_biomes :: WINDSWEPT_GRAVELLY_HILLS) as u16) { if { let v = ctx . condition_noise (0usize) ; v >= 0.24242424242424243f64 && v <= 179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000f64 } { if ctx . stone_depth_below <= 1 + 0i32 { return Some (ctx . block_state (10usize)) ; } return Some (ctx . block_state (11usize)) ; } if { let v = ctx . condition_noise (0usize) ; v >= 0.12121212121212122f64 && v <= 179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000f64 } { return Some (ctx . block_state (10usize)) ; } if { let v = ctx . condition_noise (0usize) ; v >= - 0.12121212121212122f64 && v <= 179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000f64 } { if ctx . water_height == i32 :: MIN || ctx . block_y >= ctx . water_height + 0i32 + ctx . surface_depth * 0i32 { return Some (ctx . block_state (2usize)) ; } return Some (ctx . block_state (3usize)) ; } if ctx . stone_depth_below <= 1 + 0i32 { return Some (ctx . block_state (10usize)) ; } return Some (ctx . block_state (11usize)) ; } if ctx . biome_id () . is_some_and (| biome_id | (biome_id == steel_registry :: RegistryEntry :: id (& * steel_registry :: vanilla_biomes :: OLD_GROWTH_PINE_TAIGA) as u16 || biome_id == steel_registry :: RegistryEntry :: id (& * steel_registry :: vanilla_biomes :: OLD_GROWTH_SPRUCE_TAIGA) as u16)) { if { let v = ctx . condition_noise (0usize) ; v >= 0.21212121212121213f64 && v <= 179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000f64 } { return Some (ctx . block_state (1usize)) ; } if { let v = ctx . condition_noise (0usize) ; v >= - 0.11515151515151514f64 && v <= 179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000f64 } { return Some (ctx . block_state (22usize)) ; } } if ctx . biome_id () . is_some_and (| biome_id | biome_id == steel_registry :: RegistryEntry :: id (& * steel_registry :: vanilla_biomes :: ICE_SPIKES) as u16) { if ctx . water_height == i32 :: MIN || ctx . block_y >= ctx . water_height + 0i32 + ctx . surface_depth * 0i32 { return Some (ctx . block_state (15usize)) ; } } if ctx . biome_id () . is_some_and (| biome_id | biome_id == steel_registry :: RegistryEntry :: id (& * steel_registry :: vanilla_biomes :: MANGROVE_SWAMP) as u16) { return Some (ctx . block_state (23usize)) ; } if ctx . biome_id () . is_some_and (| biome_id | biome_id == steel_registry :: RegistryEntry :: id (& * steel_registry :: vanilla_biomes :: MUSHROOM_FIELDS) as u16) { return Some (ctx . block_state (24usize)) ; } if ctx . water_height == i32 :: MIN || ctx . block_y >= ctx . water_height + 0i32 + ctx . surface_depth * 0i32 { return Some (ctx . block_state (2usize)) ; } return Some (ctx . block_state (3usize)) ; } } if ctx . water_height == i32 :: MIN || ctx . block_y + ctx . stone_depth_above >= ctx . water_height + - 6i32 + ctx . surface_depth * - 1i32 { if ctx . stone_depth_above <= 1 + 0i32 { if ctx . biome_id () . is_some_and (| biome_id | (biome_id == steel_registry :: RegistryEntry :: id (& * steel_registry :: vanilla_biomes :: FROZEN_OCEAN) as u16 || biome_id == steel_registry :: RegistryEntry :: id (& * steel_registry :: vanilla_biomes :: DEEP_FROZEN_OCEAN) as u16)) { if ctx . surface_depth <= 0 { return Some (ctx . block_state (4usize)) ; } } } if ctx . stone_depth_above <= 1 + 0i32 + ctx . surface_depth { if ctx . biome_id () . is_some_and (| biome_id | biome_id == steel_registry :: RegistryEntry :: id (& * steel_registry :: vanilla_biomes :: FROZEN_PEAKS) as u16) { if ctx . steep { return Some (ctx . block_state (14usize)) ; } if { let v = ctx . condition_noise (2usize) ; v >= - 0.5f64 && v <= 0.2f64 } { return Some (ctx . block_state (14usize)) ; } if { let v = ctx . condition_noise (3usize) ; v >= - 0.0625f64 && v <= 0.025f64 } { return Some (ctx . block_state (13usize)) ; } if ctx . water_height == i32 :: MIN || ctx . block_y >= ctx . water_height + 0i32 + ctx . surface_depth * 0i32 { return Some (ctx . block_state (15usize)) ; } } if ctx . biome_id () . is_some_and (| biome_id | biome_id == steel_registry :: RegistryEntry :: id (& * steel_registry :: vanilla_biomes :: SNOWY_SLOPES) as u16) { if ctx . steep { return Some (ctx . block_state (10usize)) ; } if { let v = ctx . condition_noise (4usize) ; v >= 0.45f64 && v <= 0.58f64 } { if ctx . water_height == i32 :: MIN || ctx . block_y >= ctx . water_height + 0i32 + ctx . surface_depth * 0i32 { return Some (ctx . block_state (16usize)) ; } } if ctx . water_height == i32 :: MIN || ctx . block_y >= ctx . water_height + 0i32 + ctx . surface_depth * 0i32 { return Some (ctx . block_state (15usize)) ; } } if ctx . biome_id () . is_some_and (| biome_id | biome_id == steel_registry :: RegistryEntry :: id (& * steel_registry :: vanilla_biomes :: JAGGED_PEAKS) as u16) { return Some (ctx . block_state (10usize)) ; } if ctx . biome_id () . is_some_and (| biome_id | biome_id == steel_registry :: RegistryEntry :: id (& * steel_registry :: vanilla_biomes :: GROVE) as u16) { if { let v = ctx . condition_noise (4usize) ; v >= 0.45f64 && v <= 0.58f64 } { if ctx . water_height == i32 :: MIN || ctx . block_y >= ctx . water_height + 0i32 + ctx . surface_depth * 0i32 { return Some (ctx . block_state (16usize)) ; } } return Some (ctx . block_state (3usize)) ; } if ctx . biome_id () . is_some_and (| biome_id | biome_id == steel_registry :: RegistryEntry :: id (& * steel_registry :: vanilla_biomes :: STONY_PEAKS) as u16) { if { let v = ctx . condition_noise (5usize) ; v >= - 0.0125f64 && v <= 0.0125f64 } { return Some (ctx . block_state (17usize)) ; } return Some (ctx . block_state (10usize)) ; } if ctx . biome_id () . is_some_and (| biome_id | biome_id == steel_registry :: RegistryEntry :: id (& * steel_registry :: vanilla_biomes :: STONY_SHORE) as u16) { if { let v = ctx . condition_noise (6usize) ; v >= - 0.05f64 && v <= 0.05f64 } { if ctx . stone_depth_below <= 1 + 0i32 { return Some (ctx . block_state (10usize)) ; } return Some (ctx . block_state (11usize)) ; } return Some (ctx . block_state (10usize)) ; } if ctx . biome_id () . is_some_and (| biome_id | biome_id == steel_registry :: RegistryEntry :: id (& * steel_registry :: vanilla_biomes :: WINDSWEPT_HILLS) as u16) { if { let v = ctx . condition_noise (0usize) ; v >= 0.12121212121212122f64 && v <= 179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000f64 } { return Some (ctx . block_state (10usize)) ; } } if ctx . biome_id () . is_some_and (| biome_id | (biome_id == steel_registry :: RegistryEntry :: id (& * steel_registry :: vanilla_biomes :: WARM_OCEAN) as u16 || biome_id == steel_registry :: RegistryEntry :: id (& * steel_registry :: vanilla_biomes :: BEACH) as u16 || biome_id == steel_registry :: RegistryEntry :: id (& * steel_registry :: vanilla_biomes :: SNOWY_BEACH) as u16)) { if ctx . stone_depth_below <= 1 + 0i32 { return Some (ctx . block_state (18usize)) ; } return Some (ctx . block_state (19usize)) ; } if ctx . biome_id () . is_some_and (| biome_id | biome_id == steel_registry :: RegistryEntry :: id (& * steel_registry :: vanilla_biomes :: DESERT) as u16) { if ctx . stone_depth_below <= 1 + 0i32 { return Some (ctx . block_state (18usize)) ; } return Some (ctx . block_state (19usize)) ; } if ctx . biome_id () . is_some_and (| biome_id | biome_id == steel_registry :: RegistryEntry :: id (& * steel_registry :: vanilla_biomes :: DRIPSTONE_CAVES) as u16) { return Some (ctx . block_state (10usize)) ; } if ctx . biome_id () . is_some_and (| biome_id | biome_id == steel_registry :: RegistryEntry :: id (& * steel_registry :: vanilla_biomes :: SULFUR_CAVES) as u16) { if { let v = ctx . condition_noise_3d (7usize) ; v >= - 0.4000000059604645f64 && v <= - 0.10000000149011612f64 } { return Some (ctx . block_state (20usize)) ; } if { let v = ctx . condition_noise_3d (7usize) ; v >= 0f64 && v <= 0.4000000059604645f64 } { return Some (ctx . block_state (21usize)) ; } if { let v = ctx . condition_noise_3d (7usize) ; v >= 0.4000000059604645f64 && v <= 179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000f64 } { return Some (ctx . block_state (20usize)) ; } return Some (ctx . block_state (10usize)) ; } if ctx . biome_id () . is_some_and (| biome_id | biome_id == steel_registry :: RegistryEntry :: id (& * steel_registry :: vanilla_biomes :: WINDSWEPT_SAVANNA) as u16) { if { let v = ctx . condition_noise (0usize) ; v >= 0.21212121212121213f64 && v <= 179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000f64 } { return Some (ctx . block_state (10usize)) ; } } if ctx . biome_id () . is_some_and (| biome_id | biome_id == steel_registry :: RegistryEntry :: id (& * steel_registry :: vanilla_biomes :: WINDSWEPT_GRAVELLY_HILLS) as u16) { if { let v = ctx . condition_noise (0usize) ; v >= 0.24242424242424243f64 && v <= 179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000f64 } { if ctx . stone_depth_below <= 1 + 0i32 { return Some (ctx . block_state (10usize)) ; } return Some (ctx . block_state (11usize)) ; } if { let v = ctx . condition_noise (0usize) ; v >= 0.12121212121212122f64 && v <= 179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000f64 } { return Some (ctx . block_state (10usize)) ; } if { let v = ctx . condition_noise (0usize) ; v >= - 0.12121212121212122f64 && v <= 179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000f64 } { return Some (ctx . block_state (3usize)) ; } if ctx . stone_depth_below <= 1 + 0i32 { return Some (ctx . block_state (10usize)) ; } return Some (ctx . block_state (11usize)) ; } if ctx . biome_id () . is_some_and (| biome_id | biome_id == steel_registry :: RegistryEntry :: id (& * steel_registry :: vanilla_biomes :: MANGROVE_SWAMP) as u16) { return Some (ctx . block_state (23usize)) ; } return Some (ctx . block_state (3usize)) ; } if ctx . biome_id () . is_some_and (| biome_id | (biome_id == steel_registry :: RegistryEntry :: id (& * steel_registry :: vanilla_biomes :: WARM_OCEAN) as u16 || biome_id == steel_registry :: RegistryEntry :: id (& * steel_registry :: vanilla_biomes :: BEACH) as u16 || biome_id == steel_registry :: RegistryEntry :: id (& * steel_registry :: vanilla_biomes :: SNOWY_BEACH) as u16)) { if { let extra = ((ctx . surface_secondary + 1.0) / 2.0 * 6i32 as f64) as i32 ; ctx . stone_depth_above <= 1 + 0i32 + ctx . surface_depth + extra } { return Some (ctx . block_state (18usize)) ; } } if ctx . biome_id () . is_some_and (| biome_id | biome_id == steel_registry :: RegistryEntry :: id (& * steel_registry :: vanilla_biomes :: DESERT) as u16) { if { let extra = ((ctx . surface_secondary + 1.0) / 2.0 * 30i32 as f64) as i32 ; ctx . stone_depth_above <= 1 + 0i32 + ctx . surface_depth + extra } { return Some (ctx . block_state (18usize)) ; } } } if ctx . stone_depth_above <= 1 + 0i32 { if ctx . biome_id () . is_some_and (| biome_id | (biome_id == steel_registry :: RegistryEntry :: id (& * steel_registry :: vanilla_biomes :: FROZEN_PEAKS) as u16 || biome_id == steel_registry :: RegistryEntry :: id (& * steel_registry :: vanilla_biomes :: JAGGED_PEAKS) as u16)) { return Some (ctx . block_state (10usize)) ; } if ctx . biome_id () . is_some_and (| biome_id | (biome_id == steel_registry :: RegistryEntry :: id (& * steel_registry :: vanilla_biomes :: WARM_OCEAN) as u16 || biome_id == steel_registry :: RegistryEntry :: id (& * steel_registry :: vanilla_biomes :: LUKEWARM_OCEAN) as u16 || biome_id == steel_registry :: RegistryEntry :: id (& * steel_registry :: vanilla_biomes :: DEEP_LUKEWARM_OCEAN) as u16)) { if ctx . stone_depth_below <= 1 + 0i32 { return Some (ctx . block_state (18usize)) ; } return Some (ctx . block_state (19usize)) ; } if ctx . stone_depth_below <= 1 + 0i32 { return Some (ctx . block_state (10usize)) ; } return Some (ctx . block_state (11usize)) ; } } if ctx . biome_id () . is_some_and (| biome_id | biome_id == steel_registry :: RegistryEntry :: id (& * steel_registry :: vanilla_biomes :: SULFUR_CAVES) as u16) { if { let v = ctx . condition_noise_3d (7usize) ; v >= - 0.4000000059604645f64 && v <= - 0.10000000149011612f64 } { return Some (ctx . block_state (20usize)) ; } if { let v = ctx . condition_noise_3d (7usize) ; v >= 0f64 && v <= 0.4000000059604645f64 } { return Some (ctx . block_state (21usize)) ; } if { let v = ctx . condition_noise_3d (7usize) ; v >= 0.4000000059604645f64 && v <= 179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000f64 } { return Some (ctx . block_state (20usize)) ; } } if ctx . system . vertical_gradient (1usize , ctx . block_x , ctx . block_y , ctx . block_z , 0i32 , 8i32) { return Some (ctx . block_state (25usize)) ; } None } }