Fix draw calls sorting to favor distance over geometry and material
#2271 #2306
This commit is contained in:
@@ -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();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user