PDA

View Full Version : Early depth pass benefit when target is FBO?



Swoop
12-27-2008, 03:42 PM
Early depth pass reduces fragment shader execution on pixels that ultimately wont be seen (first pass, depth write on, depth test less, color off, second pass depth off, depth test less equal color on). Do the benefits of that process extend to the use of FBOs? If your target it not the primary window framebuffer, does it still work the same? I guess Im looking for confirmation that applying it offscreen doesnt somehow disable it or make it unavailable. Or is it exclusive to the main window buffer?

dimensionX
12-27-2008, 05:23 PM
Yes, it works for FBOs also.

Swoop
12-27-2008, 07:31 PM
Great, thx.