Fix draw calls sorting to favor distance over geometry and material

#2271 #2306
This commit is contained in:
Wojtek Figat
2024-08-27 16:01:46 +02:00
parent 591f0ee6a9
commit 499ef51875

View File

@@ -489,10 +489,10 @@ struct PackedSortKey
struct
{
// Sorting order: By Sort Order -> By Material -> By Geometry -> By Distance
uint32 DistanceKey;
// Sorting order: By Sort Order -> By Distance -> By Material -> By Geometry
uint8 DrawKey;
uint16 BatchKey;
uint32 DistanceKey;
uint8 SortKey;
} PACK_END();
};