Module veloren_voxygen::mesh::greedy
source ยท Structsยง
- Shared state for a greedy mesh, potentially passed along to multiple models.
Traitsยง
- Abstraction over different atlas allocators. Useful to swap out the allocator implementation for specific cases (e.g. sprites).
Functionsยง
- add_to_atlas ๐
- create_quad_greedy ๐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).
- draw_texels ๐We deferred actually recording the colors within the rectangles in order to generate a texture of minimal size; we now proceed to create and populate it.
- Currently used by terrain/particles/figures
- greedy_mesh ๐
- Greedy meshing a single cross-section.
- guillotiere_size ๐
Type Aliasesยง
- A suspended greedy mesh, with enough information to recover color data.
- TodoRect ๐