no more z fighting
This commit is contained in:
parent
0a04622787
commit
d2f3691e93
1 changed files with 5 additions and 1 deletions
|
@ -197,7 +197,11 @@ fn spawn_block(
|
||||||
transform: Transform::from_xyz(
|
transform: Transform::from_xyz(
|
||||||
x + block_size * ((len as f32 - 1.) / 2.),
|
x + block_size * ((len as f32 - 1.) / 2.),
|
||||||
y,
|
y,
|
||||||
WORLD_DEPTH,
|
if fixed {
|
||||||
|
WORLD_DEPTH
|
||||||
|
} else {
|
||||||
|
WORLD_DEPTH - 0.01
|
||||||
|
},
|
||||||
),
|
),
|
||||||
..Default::default()
|
..Default::default()
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Reference in a new issue