mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-10 21:41:50 +00:00
feat: actually working slow prototype
This commit is contained in:
parent
faadfca8c3
commit
4400366719
4 changed files with 83 additions and 10 deletions
|
|
@ -12,6 +12,11 @@ class Mesh;
|
|||
struct SortingMeshEntry {
|
||||
glm::vec3 position;
|
||||
util::Buffer<float> vertexData;
|
||||
float distance;
|
||||
|
||||
inline bool operator<(const SortingMeshEntry& o) const noexcept {
|
||||
return distance > o.distance;
|
||||
}
|
||||
};
|
||||
|
||||
struct SortingMeshData {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue