Page 1 of 1

Love2d shader

Posted: Tue Aug 13, 2019 10:17 am
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 :)

Re: Love2d shader

Posted: Tue Aug 13, 2019 11:01 am
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.