diff --git a/assets/voxygen/shaders/sprite-frag.glsl b/assets/voxygen/shaders/sprite-frag.glsl index 45e40a9a98..70031fb5bc 100644 --- a/assets/voxygen/shaders/sprite-frag.glsl +++ b/assets/voxygen/shaders/sprite-frag.glsl @@ -12,7 +12,7 @@ out vec4 tgt_color; #include #include -const float RENDER_DIST = 128.0; +const float RENDER_DIST = 112.0; const float FADE_DIST = 32.0; void main() { diff --git a/voxygen/src/scene/terrain.rs b/voxygen/src/scene/terrain.rs index 8a3b7bce32..814d9d37b4 100644 --- a/voxygen/src/scene/terrain.rs +++ b/voxygen/src/scene/terrain.rs @@ -437,7 +437,9 @@ impl Terrain { let chunk_center = pos.map2(Vec2::from(TerrainChunkSize::SIZE), |e, sz: u32| { (e as f32 + 0.5) * sz as f32 }); - if Vec2::from(focus_pos).distance(chunk_center) < SPRITE_RENDER_DISTANCE { + if Vec2::from(focus_pos).distance_squared(chunk_center) + < SPRITE_RENDER_DISTANCE * SPRITE_RENDER_DISTANCE + { for (kind, instances) in &chunk.sprite_instances { renderer.render_sprites( &self.sprite_models[&kind],