Function voxel_worldgen::generators::vanilla::lerp::lerp_height_field
[−]
[src]
pub fn lerp_height_field(
density_field: &GenUnit3<f64>,
size: Vec3<u32>,
scale: Vec3<u32>
) -> GenUnit3<u8>
Takes an array of density values in a chunk, usually by the gen_height_field function. This will linearly interpolate between the values in the density values in the given array, and rasterize into a rough representation of the chunk. (water/lava and stone terrain only)