humanbydefinition / p5.asciify

Apply real-time ASCII conversion to your favorite WebGL p5.js sketches instantly.
MIT License
27 stars 2 forks source link

[TASKS2-27] Refactor pre effect framebuffer initialization #7

Closed humanbydefinition closed 2 months ago

humanbydefinition commented 2 months ago

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.

notion-workspace[bot] commented 2 months ago

Fix Apple specific error