mmatl / pyrender

Easy-to-use glTF 2.0-compliant OpenGL renderer for visualization of 3D scenes.
http://pyrender.readthedocs.io/
MIT License
1.31k stars 225 forks source link

Rendering the depth of back side of objects #239

Open Seasandwpy opened 2 years ago

Seasandwpy commented 2 years ago

Hi,

I would like to render the depth of the back side of the objects, where I need to modify the source code to pick the intersection between the ray and mesh surface with the largest depth value when dealing with occlusions. Is it possible to do it in pyrender, and could someone point out where to modify the code?