mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Fixed terrain sprite transparency issue
This commit is contained in:
parent
4de7a064a1
commit
17a61e0b7c
@ -605,7 +605,12 @@ impl Terrain {
|
||||
for (pos, chunk) in &self.chunks {
|
||||
if chunk.visible {
|
||||
renderer.render_terrain_chunk(&chunk.opaque_model, globals, &chunk.locals, lights);
|
||||
}
|
||||
}
|
||||
|
||||
// Terrain sprites
|
||||
for (pos, chunk) in &self.chunks {
|
||||
if chunk.visible {
|
||||
const SPRITE_RENDER_DISTANCE: f32 = 128.0;
|
||||
|
||||
let chunk_center = pos.map2(Vec2::from(TerrainChunkSize::SIZE), |e, sz: u32| {
|
||||
|
Loading…
Reference in New Issue
Block a user