mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Iterate over more trees... slower, but maybe more correct.
This commit is contained in:
parent
4cf42e2563
commit
c2410c6303
@ -132,7 +132,7 @@ pub fn apply_trees_to(
|
|||||||
|
|
||||||
/*canvas.foreach_col(|canvas, wpos2d, col| {*/
|
/*canvas.foreach_col(|canvas, wpos2d, col| {*/
|
||||||
info.chunks()
|
info.chunks()
|
||||||
.get_area_trees(render_area.min, render_area.max)
|
.get_area_trees(render_area.min + 15, render_area.max + 16)
|
||||||
.filter_map(|attr| {
|
.filter_map(|attr| {
|
||||||
info.col_or_gen(attr.pos)
|
info.col_or_gen(attr.pos)
|
||||||
.filter(|col| tree_valid_at(col, attr.seed))
|
.filter(|col| tree_valid_at(col, attr.seed))
|
||||||
|
Loading…
Reference in New Issue
Block a user