Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | ReudsFratt92 |
Is it possible to set filtering mode for a sampler2D used in shaders?
Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | ReudsFratt92 |
Is it possible to set filtering mode for a sampler2D used in shaders?
Reply From: | Haydoggo |
In Godot 4, you can specify how sampler2D uniforms are filtered with filtering hints.
uniform sampler2D filter_on : filter_linear;
uniform sampler2D filter_off : filter_nearest;