mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Fix formatting issues I missed before.
This commit is contained in:
parent
a428a3ebba
commit
5f3b7294af
@ -151,15 +151,7 @@ impl<'a> GreedyMesh<'a> {
|
||||
/// Returns an estimate of the bounds of the current meshed model.
|
||||
///
|
||||
/// For more information on the config parameter, see [GreedyConfig].
|
||||
pub fn push<
|
||||
M: PartialEq,
|
||||
D: 'a,
|
||||
FL,
|
||||
FC,
|
||||
FO,
|
||||
FS,
|
||||
FP,
|
||||
>(
|
||||
pub fn push<M: PartialEq, D: 'a, FL, FC, FO, FS, FP>(
|
||||
&mut self,
|
||||
config: GreedyConfig<D, FL, FC, FO, FS, FP>,
|
||||
) -> Aabb<u16>
|
||||
|
@ -82,8 +82,7 @@ where
|
||||
};
|
||||
|
||||
let mut opaque_mesh = Mesh::new();
|
||||
let bounds = greedy.push(
|
||||
GreedyConfig {
|
||||
let bounds = greedy.push(GreedyConfig {
|
||||
data: self,
|
||||
draw_delta,
|
||||
greedy_size,
|
||||
@ -103,8 +102,7 @@ where
|
||||
|atlas_pos, pos, norm, &_meta| create_opaque(atlas_pos, pos, norm),
|
||||
));
|
||||
},
|
||||
},
|
||||
);
|
||||
});
|
||||
let bounds = bounds.map(f32::from);
|
||||
let bounds = Aabb {
|
||||
min: (bounds.min + offs) * scale,
|
||||
@ -195,8 +193,7 @@ where
|
||||
};
|
||||
|
||||
let mut opaque_mesh = Mesh::new();
|
||||
let _bounds = greedy.push(
|
||||
GreedyConfig {
|
||||
let _bounds = greedy.push(GreedyConfig {
|
||||
data: self,
|
||||
draw_delta,
|
||||
greedy_size,
|
||||
@ -216,8 +213,7 @@ where
|
||||
|atlas_pos, pos, norm, &meta| create_opaque(atlas_pos, pos, norm, meta),
|
||||
));
|
||||
},
|
||||
},
|
||||
);
|
||||
});
|
||||
|
||||
(opaque_mesh, Mesh::new(), Mesh::new(), ())
|
||||
}
|
||||
|
@ -519,8 +519,7 @@ impl<'a, V: RectRasterableVol<Vox = Block> + ReadVol + Debug>
|
||||
let mut greedy = GreedyMesh::new(max_size);
|
||||
let mut opaque_mesh = Mesh::new();
|
||||
let mut fluid_mesh = Mesh::new();
|
||||
let bounds = greedy.push(
|
||||
GreedyConfig {
|
||||
let bounds = greedy.push(GreedyConfig {
|
||||
data: (),
|
||||
draw_delta,
|
||||
greedy_size,
|
||||
@ -553,8 +552,7 @@ impl<'a, V: RectRasterableVol<Vox = Block> + ReadVol + Debug>
|
||||
));
|
||||
},
|
||||
},
|
||||
},
|
||||
);
|
||||
});
|
||||
|
||||
let bounds = bounds.map(f32::from);
|
||||
let bounds = Aabb {
|
||||
|
Loading…
Reference in New Issue
Block a user