It’s a bit complicated because you will have to implement the necessary code in your custom shader to support OIT. You should take example on the standard material and look for the ORDER_INDEPENDENT_TRANSPARENCY
define. You will also have to add #include<oitDeclaration>
and #include<oitFragment>
in your shader. Again, look how it is done in the default material (shaders/default.vertex.fx and shaders/default.fragment.fx).
2 Likes