[Solved] Shader, but on quad/batch and not whole texture

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.
User avatar
Ref
Party member
Posts: 702
Joined: Wed May 02, 2012 11:05 pm

Re: Shader, but on quad/batch and not whole texture

Post by Ref »

[quote="~Tidal"
I only want to have the lower part of the said quad of a different color than the top part, so I'm working with texture_coords, which don't apply to the quad, but to the original picture.[/quote]

Sorry for my profound lack of understanding as to what you apparently want.
My only point was to indicate that a shader is applied to a canvas (current screen or other canvas) so that if you wanted a shader to effect only a quad, you could place that quad in a canvas and apply the shader to only that canvas.
This may not be the most effective way to get what you want.
Attachments
selectiveShade.love
Applying shader to multiple canvases
(51.14 KiB) Downloaded 107 times
User avatar
~Tidal
Prole
Posts: 27
Joined: Sat Jan 10, 2015 8:19 pm

Re: [Solved] Shader, but on quad/batch and not whole texture

Post by ~Tidal »

Oh, never mind.
I've already find a way out and it's even better for what I want to achieve, but I'll take notes for the next time.
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 28 guests