Closed
Description
Description
It looks like there's a depth clear issue (?) when using a scene background together with EffectComposer when transmissive objects are rendered.
The result is that only the background is visible in transmission, not the scene content. Sometimes parts of the scene content are visible but then "disappear" (thus my assumption that this is related to some depth buffer not being cleared correctly).
Reproduction steps
- Go to https://jsfiddle.net/0zLhsk3u/103/
- Rotate the camera a bit (first frame likely works because depth buffer is empty before!)
- Note that the grey object is not visible in the transmission
.
- Press "F" which will switch from a background texture to a background color.
- Note that the dark green sphere is visible in transmission again.
.
- Press "F" again to switch to background texture again (dark green sphere disappears from transmission)
- Press "C to disable the EffectComposer
- Note that the dark green sphere is visible again
So this combination breaks:
- Background texture + EffectComposer + Transmission
Code
See https://jsfiddle.net/0zLhsk3u/103/
Live example
https://jsfiddle.net/0zLhsk3u/103/
Version
r167dev
Activity