Hi,
Here is Unity’s official document for Culling & Depth Testing. And the illustration in this document shows that the Depth Test stage happens before Fragment Shader.
It seems different with DX Graphics pipeline. In DX Graphics pipeline, the Depth Test happens after Fragment Shader, even later than Alpha Test.
Then, I’ve got 3 questions:
- Does Unity ShaderLab can control the sequence of pipeline stages over DX/Open GL?
- Is there any document or article to show the Unity’s full Forward Rendering pipeline?
- When does Stencil Test stage happen? (I guess just right before Depth Test, but not sure)
I’m really confused with these questions Now.
Any reply would be appreciated.
THX