Love2d shader

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
wazoowazoo
Prole
Posts: 16
Joined: Sun Jan 22, 2017 2:47 pm

Love2d shader

Post by wazoowazoo »

Hello everyone,
I was just wondering if the "Texel(Image texture, vec2 coords)" method did bilinear interpolation of the color when "coords" landed between 4 pixels or if it just chose the color of the closest neighbour ?

Thanks for answering :)
User avatar
pgimeno
Party member
Posts: 3544
Joined: Sun Oct 18, 2015 2:58 pm

Re: Love2d shader

Post by pgimeno »

It depends on the filter set for the texture you pass to the function. You can set it individually for each texture with Texture:setFilter or set a default for newly created textures with love.graphics.setDefaultFilter.
Post Reply

Who is online

Users browsing this forum: No registered users and 46 guests