mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Fixed frustum culling efficiency bug
This commit is contained in:
parent
e4d5476d28
commit
581c4d0e3b
@ -247,7 +247,7 @@ impl Terrain {
|
||||
chunk_pos.y + chunk_sz / 2.0,
|
||||
(chunk.z_bounds.0 + chunk.z_bounds.1) * 0.5,
|
||||
);
|
||||
let chunk_radius = (chunk.z_bounds.1 - chunk.z_bounds.0)
|
||||
let chunk_radius = ((chunk.z_bounds.1 - chunk.z_bounds.0) / 2.0)
|
||||
.max(chunk_sz / 2.0)
|
||||
.powf(2.0)
|
||||
.mul(2.0)
|
||||
|
Loading…
Reference in New Issue
Block a user