Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8113195

OpenGL : We need proper Z-Buffer managment for transparent and off-screen rendering

XMLWordPrintable

      ES2Graphics.java has a code peventing Z-buffer from be cleared it RenderTarget is not a SwapChain :

              // TODO: only bother clearing the depth buffer for onscreen
              // windows for now, since we do not yet attach a depth buffer
              // to FBOs; this will need to change, obviously...
              boolean clearDepth =
                  isDepthBuffer() && getRenderTarget() instanceof ES2SwapChain;

      Z-buffer should be functional even for render target textures and off-screen rendering.

            ckyang Chien Yang (Inactive)
            kprazdnikwse Kirill.Prazdnikov (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:

                Estimated:
                Original Estimate - 4 days
                4d
                Remaining:
                Remaining Estimate - 4 days
                4d
                Logged:
                Time Spent - Not Specified
                Not Specified