-
-
Notifications
You must be signed in to change notification settings - Fork 166
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can you turn off texture filtering (want to use pixely low res textures) #233
Comments
This question was answered countless times for pixel-art games, in various ways. The same applies in 3D: find your texture in the filesystem dock, select it, then go to the |
This option is not present anymore in Godot4's Texture2D import. According to this, filtering is now configured in the CanvasItem, which I suppose only works for 2D. How can filtering be turned of in Godot 4? |
Changing the sampling mode is unfortunately more effort now, both for you and me: The plugin requires a shader to render. The way Godot 4 expects you to do this now, is to modify the shader directly, by adding Because of this, the easiest for you is to fork the shader you desire and add these hints to it. You can do so by creating a new shader under the Then for example, in classic4:
Change these lines into:
|
Thanks for the quick reply, this works! |
Just used this, works great! |
Thanks! |
I wonder if the Godot shader language could feature |
Actually if there was a way to treat |
Actually, thinking about it, if sampler settings don't actually require a different shader under the hood (I don't recall GLSL requiring to specify that), it would be wasteful to go that route because it involves shader compilation (the choice of coupling this to shaders is purely a Godot thing?). But it would still be useful for other features. |
Can you turn off texture filtering (want to use pixely low res textures)? Currently, if I lower the resolution of the texture, it just makes it more blury.
The text was updated successfully, but these errors were encountered: