From 237d33e9aa831ae44fe1b6e87a720b2b42ccf372 Mon Sep 17 00:00:00 2001 From: Joshua Barretto Date: Tue, 18 Aug 2020 18:06:28 +0100 Subject: [PATCH] Updated changelog --- CHANGELOG.md | 1 + voxygen/src/scene/particle.rs | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 55245f8670..ee926c7103 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - New level of detail feature, letting you see all the world's terrain at any view distance. - Point and directional lights now cast realistic shadows, using shadow mapping. +- Added leaf and chimney particles ### Changed - Fixed a bug where leaving the Settings menu by pressing "N" in single player kept the game paused diff --git a/voxygen/src/scene/particle.rs b/voxygen/src/scene/particle.rs index 96b2077b24..ab48f0b515 100644 --- a/voxygen/src/scene/particle.rs +++ b/voxygen/src/scene/particle.rs @@ -273,7 +273,7 @@ impl ParticleMgr { type BoiFn<'a> = fn(&'a BlocksOfInterest) -> &'a [Vec3]; let particles: &[(BoiFn, _, _, _)] = &[ - (|boi| &boi.leaves, 0.005, 30.0, ParticleMode::Leaf), + (|boi| &boi.leaves, 0.002, 30.0, ParticleMode::Leaf), (|boi| &boi.embers, 20.0, 0.25, ParticleMode::CampfireFire), (|boi| &boi.embers, 6.0, 30.0, ParticleMode::CampfireSmoke), ]; @@ -299,7 +299,7 @@ impl ParticleMgr { Duration::from_secs_f32(*dur), time, *mode, - block_pos.map(|e: i32| e as f32 + 0.5), + block_pos.map(|e: i32| e as f32 + thread_rng().gen::()), )); } }