no more z fighting

This commit is contained in:
TudbuT 2024-11-24 17:20:45 +01:00
parent 0a04622787
commit d2f3691e93
No known key found for this signature in database
GPG key ID: B3CF345217F202D3

View file

@ -197,7 +197,11 @@ fn spawn_block(
transform: Transform::from_xyz(
x + block_size * ((len as f32 - 1.) / 2.),
y,
WORLD_DEPTH,
if fixed {
WORLD_DEPTH
} else {
WORLD_DEPTH - 0.01
},
),
..Default::default()
},