From 211c076b8d5da5003b5f70e5ea811b277164cf9b Mon Sep 17 00:00:00 2001 From: Imbris Date: Wed, 8 Jan 2020 00:43:13 -0500 Subject: [PATCH] Remove unnecessary sampling in meshing light calculations --- voxygen/src/mesh/terrain.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/voxygen/src/mesh/terrain.rs b/voxygen/src/mesh/terrain.rs index 87a688882e..f279cff85c 100644 --- a/voxygen/src/mesh/terrain.rs +++ b/voxygen/src/mesh/terrain.rs @@ -37,8 +37,8 @@ fn calc_light + ReadVol + Debug>( const SUNLIGHT: u8 = 24; let outer = Aabb { - min: bounds.min - SUNLIGHT as i32, - max: bounds.max + SUNLIGHT as i32, + min: bounds.min - Vec3::new(SUNLIGHT as i32, SUNLIGHT as i32, 1), + max: bounds.max + Vec3::new(SUNLIGHT as i32, SUNLIGHT as i32, 1), }; let mut vol_cached = vol.cached();