glslViewer icon indicating copy to clipboard operation
glslViewer copied to clipboard

Support changing texture filtering

Open ooploopl- opened this issue 4 years ago • 4 comments

As far as i understand there is no support for changing filtering when loading textures.

ooploopl- avatar Oct 31 '19 01:10 ooploopl-

No for the moment... but you can cheat it some extra code. For example to use nearest you need to decimate the UV: uv = floor(uv*scale)/scale;

Do you mind sharing what is the context for this feature request?

patriciogonzalezvivo avatar Dec 16 '19 17:12 patriciogonzalezvivo

I think it is nice to have filtering, wrapping options for textures so you can get identical results between this tool, your app vice versa. I already convert it to pixels by code provided, just wanted to suggest using hardware features. This may open the path for more features later on.

ooploopl- avatar Dec 24 '19 06:12 ooploopl-

What is scale here?

bradley avatar Aug 27 '21 14:08 bradley

Hi! This function is essentially a decimation function where scale is the original texture resolution (For ex: u_tex0Resolution)

patriciogonzalezvivo avatar Aug 27 '21 15:08 patriciogonzalezvivo