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”.
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
bl0ggy | 2023-04-15 15:16