I want to render a opaque object behind all my transparent objects by setting mesh.renderOrder = 9999
as well as material.depthTest = false
for all my opaque objects. But the render order seems doesn't work when my scene has transparent objects. My opaque objects get blended with the transparent objects.
It works well when all the objects are opaque. But when I set the material of some of the objects to transparent = true
, the render order seems doesn't work.
I've already set renderer.sortObject = true
. I don't want to set it to false
because I can't control the order of loading my objects.
Is there any way to render opaque objects after transparent objects?