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
- 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).
- 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 meshing a single cross-section.
Type Aliases
- A suspended greedy mesh, with enough information to recover color data.
- TodoRect 🔒