Function veloren_voxygen::mesh::greedy::create_quad_greedy
source ยท fn create_quad_greedy<M>(
origin: Vec3<usize>,
dim: Vec2<usize>,
uv: Vec2<Vec3<u16>>,
norm: Vec3<i16>,
faces_forward: bool,
meta: &M,
atlas_pos: Rectangle,
push_quad: impl FnMut(Vec2<u16>, Vec2<Vec2<u16>>, Vec3<f32>, Vec2<Vec3<f32>>, Vec3<f32>, &M),
)
Expand description
Precondition: when this function is called, atlas_pos should reflect an actual valid position in a texture atlas (meaning it should fit into a u16).