Anyone know how to reorder drawcall order? All must draw like this:
- Terrain, mountain, big cliffs,
rocks, well the landskape in one
- Vegetation (grass, trees and etc).
- Big object like a house, big wall,
- Medium object like a fence, farway
- Small object
- The main character
- Shadow job.
- Atmosphere scattering, volume fog
- Post processing
- Output frame.
But without draworder it draw like this, absolute chaotic and random.
Draw terrain, drop it when draw 10%, start draw farway lods, again drop it on 24%
draw trees, drop it at 50% start draw terrain again. This switching just messing up render, and bandwich between GPU and CPU became bottle neck
Also it ruin instancing and batching cuz it draw object randomly.