Instead of being an independent framebuffer, where the canvas is being drawn on as an image, the pre effect framebuffer now receives a reference to the framebuffer of the _renderer. That way, it's possible to properly make use of the depth property of a framebuffer object.
Also, this should fix an error that is thrown on Apple devices for some reason, even though the demo sketches run fine on these devices as well from my testing.
Instead of being an independent framebuffer, where the canvas is being drawn on as an image, the pre effect framebuffer now receives a reference to the framebuffer of the
_renderer
. That way, it's possible to properly make use of thedepth
property of a framebuffer object.Also, this should fix an error that is thrown on Apple devices for some reason, even though the demo sketches run fine on these devices as well from my testing.