Hi all,
I was wondering if it was possible for NGUI to write to the depth buffer.
The idea would be to save some fill-rate by rendering the non-transparent UI first so and fill the depth buffer so that no rendering is occurring below.
I would like to know the following points:
- If I have one UIPanel, only one quad is generated ?
- If it is the case, having multiple drawcall would mean that the whole screen quad is drawn multiple times ?That would seem totally inefficient..
I suppose my question is more about how the NGUI rendering pipeline works.
To achieve the effect I want, the current approach would dictate using multples panels and write a custom shader to write to the depth buffer where the alpha is == 1.
For widgets requiring alpha, they would be drawn as usual after the scene has been rendered.
Any insights on this ?
Thank you