bonsairobo / building-blocks

A voxel library for real-time applications.
MIT License
369 stars 30 forks source link

Allow callers to choose axies for GreedyQuadsBuffer #18

Closed malmz closed 3 years ago

malmz commented 3 years ago

Add a constructor to GreedyQuadsBuffer to allow for custom Axis3Permutation

bonsairobo commented 3 years ago

I've refactored the greedy quads code a bit to handle this. Now you can pass in any set of QuadGroups you want with GreedyQuadsBuffer::new_with_quad_groups. To get something that works when the +Y axis point UP, use GreedyQuadsBuffer::new_with_y_up.