arnold-usd
arnold-usd copied to clipboard
Use Z depth to detect background pixels and handle pre-multiplication
At the moment the Render Delegate is using the P AOV to calculate the OpenGL depth and the ID AOV to differentiate between the background and foreground pixels.
The Z AOV should be better suited for both problems, as the P and ID AOV's behavior is inconsistent when using the GPU backend or mixing volumes and other objects.