Skip to content

EffectComposer/Transmission: Using scene.background with a texture and having an EffectComposer breaks transmission rendering #28796

Closed
@hybridherbst

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

  1. Go to https://jsfiddle.net/0zLhsk3u/103/
  2. Rotate the camera a bit (first frame likely works because depth buffer is empty before!)
  3. Note that the grey object is not visible in the transmission
    image.
  4. Press "F" which will switch from a background texture to a background color.
  5. Note that the dark green sphere is visible in transmission again.
    image.
  6. Press "F" again to switch to background texture again (dark green sphere disappears from transmission)
  7. Press "C to disable the EffectComposer
  8. 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions