Anyone know how to reorder drawcall order? All must draw like this:
- Terrain, mountain, big cliffs,
rocks, well the landskape in one
words. - Vegetation (grass, trees and etc).
- Big object like a house, big wall,
roads. - Medium object like a fence, farway
object, lods. - Small object
- The main character
- water
- Alphatest
- Transparent
- Skybox
- Shadow job.
- Atmosphere scattering, volume fog
and etc. - 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.