This effect from my video on Wind Waker where the sun can hide behind objects is now live on noclip. It was surprisingly tricky to get working in WebGL. Anybody want to take a stab at guessing what's going on, and why it was so difficult?pic.twitter.com/vzBANfXNGN
-
-
Ah no, it's the EFB depth peeks one! I'm guessing webgl makes it hard to do depth buffer readbacks?
-
bingo. GLES says glReadPixels doesn't work on GL_DEPTH_COMPONENT... but it has depth textures, but those don't support MSAA. So it requires a full screen resolve, and then a blit from depth texture to color texture. But 32F isn't color renderable, requires a cast to U32 also.
- 4 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.