Page 1 of 1

[SOLVED] How do I apply shaders to the screen?

Posted: Thu Sep 22, 2022 1:22 pm
by CBMusic
This might be a very simple process but I've not seen it documented clearly.

Ok, so I've been coding some shaders but I only know how to apply it to textured objects (idk the correct terminology) but I need to have the shader be applied to the entire screen.

I've been thinking of using screenshots but that feels like it would be very resource heavy (I have no proof of it being heavy but I feel like there's a better way).

Any help with this?

Re: How do I apply shaders to the screen?

Posted: Thu Sep 22, 2022 4:21 pm
by MrFariator
You can draw your visuals onto a canvas, and apply the shader as you draw that canvas to the screen.

Re: How do I apply shaders to the screen?

Posted: Thu Sep 22, 2022 5:24 pm
by CBMusic
MrFariator wrote: Thu Sep 22, 2022 4:21 pm You can draw your visuals onto a canvas, and apply the shader as you draw that canvas to the screen.
I knew it was simple, I just didn't know you could apply shaders to canvases. Thank you!