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

Love2d shader

Post by wazoowazoo » Tue Aug 13, 2019 10:17 am

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
Party member
Posts: 2176
Joined: Sun Oct 18, 2015 2:58 pm

Re: Love2d shader

Post by pgimeno » Tue Aug 13, 2019 11:01 am

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

Post Reply

Who is online

Users browsing this forum: No registered users and 33 guests