WebGL Framebuffer with Renderbuffer
Swipe to View Overlapping Shapes
Framebuffer with Texture Color Attachment & Renderbuffer Depth Attachment
Two shapes intersect and rotate
in the foreground.
With depth testing enabled, fragments
in front display over fragments
Edges of the shapes disappear when they
through the back edges of the cube environment.
The shapes correctly display intersection.
Without depth testing the second shape draws
over the first shape.
Render to texture with depth
and a depth buffer.