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
-
-
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.
-
also browser and ANGLE bugs abound, including a weird WebGL2 spec ambiguity about texture completeness of depth textures. Basically, I'm using tons of stuff people don't normally use in "normal GL". See the full insanity here: https://github.com/magcius/noclip.website/blob/master/src/WindWaker/d_dlst_peekZ.ts …
- 3 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.