mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 19:41:51 +00:00
optimize (part 1)
This commit is contained in:
parent
4400366719
commit
b28bcf052b
5 changed files with 61 additions and 18 deletions
|
|
@ -12,7 +12,7 @@ class Mesh;
|
|||
struct SortingMeshEntry {
|
||||
glm::vec3 position;
|
||||
util::Buffer<float> vertexData;
|
||||
float distance;
|
||||
long long distance;
|
||||
|
||||
inline bool operator<(const SortingMeshEntry& o) const noexcept {
|
||||
return distance > o.distance;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue