Blurry texture (image) in shader

:bust_in_silhouette: Reply From: Anselme

I found a way to set a nearest filter on a texture in a visual shader.

By changing the texture source to “SamplerPort”, and plugging it to a Texture2DParameter with its filter option set to “Nearest”.

Screenshot

the generated shader code matches what you expect :

shader_type spatial;
uniform sampler2D Texture2DParameter : filter_nearest;

Well done! But sad it has to be so complex :confused:

bl0ggy | 2023-04-15 15:16

1 Like