glslViewer
glslViewer copied to clipboard
Support changing texture filtering
As far as i understand there is no support for changing filtering when loading textures.
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?
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.
What is scale
here?
Hi! This function is essentially a decimation function where scale is the original texture resolution (For ex: u_tex0Resolution
)