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

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
User avatar
CBMusic
Prole
Posts: 2
Joined: Thu Sep 22, 2022 6:26 am

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

Post 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?
Last edited by CBMusic on Fri Sep 23, 2022 11:04 am, edited 1 time in total.
MrFariator
Party member
Posts: 509
Joined: Wed Oct 05, 2016 11:53 am

Re: How do I apply shaders to the screen?

Post by MrFariator »

You can draw your visuals onto a canvas, and apply the shader as you draw that canvas to the screen.
User avatar
CBMusic
Prole
Posts: 2
Joined: Thu Sep 22, 2022 6:26 am

Re: How do I apply shaders to the screen?

Post 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!
Post Reply

Who is online

Users browsing this forum: No registered users and 17 guests