I’m using a viewport texture (2d scene) in a material for 3d (custom shader).In Godot 3.x I used to set my viewport texture's linear filter on/off with something like
This let me change the viewport texture filtering at the press of a button. How can I do this in Godot 4 with gdscript? The subviewport itself has options ‘Canvas Items → Default Texture Filter’ but these do nothing for me.
Filtering has been moved to the Shader itself as uniform hints In your case it would be something like: uniform sampler2D viewport_texture: filter_linear; for example.