This struct describes the methods to sort objects during rendering.
Additional resources: DrawingSettings, ScriptableRenderContext.DrawRenderers.
cameraPosition | Used to calculate the distance to objects. |
criteria | What kind of sorting to do while rendering. |
customAxis | Used to calculate distance to objects, by comparing the positions of objects to this axis. |
distanceMetric | Type of sorting to use while rendering. |
worldToCameraMatrix | Used to calculate the distance to objects. |
SortingSettings | Create a sorting settings struct. |