pex-gl / pex-renderer

Physically based renderer (PBR) and scene graph for PEX.
https://pex-gl.github.io/pex-renderer/examples/index.html
MIT License
234 stars 16 forks source link

feat: render transmissive objects in two passes #376

Closed vorg closed 1 month ago

vorg commented 1 month ago

Implements transmission in two passes for improved efficiency for https://github.com/pex-gl/pex-renderer/issues/375

dmnsgn commented 1 month ago
image

Stained glass lamp has black spots, visible when orbiting (some z fighting?)

Edit: data.transmitted is out of bounds somehow. (tested working with data.transmitted = saturate(data.transmitted);)