From 257c75fd9d2983a5934e54ce5043a6f0ad9b1858 Mon Sep 17 00:00:00 2001 From: griffi-gh Date: Thu, 16 Feb 2023 04:05:27 +0100 Subject: [PATCH] better trees --- kubi-shared/src/worldgen.rs | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/kubi-shared/src/worldgen.rs b/kubi-shared/src/worldgen.rs index 782ba91..7514f6f 100644 --- a/kubi-shared/src/worldgen.rs +++ b/kubi-shared/src/worldgen.rs @@ -1,6 +1,6 @@ use bracket_noise::prelude::*; use rand::prelude::*; -use glam::{IVec3, ivec3}; +use glam::{IVec3, ivec3, Vec3Swizzles, IVec2}; use rand_xoshiro::Xoshiro256StarStar; use crate::{ chunk::{BlockData, CHUNK_SIZE}, @@ -41,8 +41,12 @@ pub fn generate_world(chunk_position: IVec3, seed: u64) -> (BlockData, Vec (BlockData, Vec