Function block_mesh::visible_block_faces_with_voxel_view
source · [−]pub fn visible_block_faces_with_voxel_view<'a, T, V, S>(
voxels: &'a [T],
voxels_shape: &S,
min: [u32; 3],
max: [u32; 3],
faces: &[OrientedBlockFace; 6],
output: &mut UnitQuadBuffer
) where
V: Voxel + From<&'a T>,
S: Shape<3, Coord = u32>,
Expand description
Same as visible_block_faces
,
with the additional ability to interpret the array as some other type.
Use this if you want to mesh the same array multiple times
with different sets of voxels being visible.