Skip to content
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

How to change the SamplerFilter? #89

Open
rakzin opened this issue Oct 24, 2024 · 3 comments
Open

How to change the SamplerFilter? #89

rakzin opened this issue Oct 24, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@rakzin
Copy link

rakzin commented Oct 24, 2024

Basicly, I want to show a texture with SamplerFilter.Nearest

I saw there is a samplerstate in Internal/RdRenderer.cs file. which writes SamplerFilter.Linear

But as I'm using GDScript, changing it seems takes no effect.

@pkdawson pkdawson added the enhancement New feature or request label Oct 24, 2024
@pkdawson
Copy link
Owner

pkdawson commented Oct 24, 2024

I'd thought about this problem before, but it was way back in Godot 3, where you could just change the filter in the texture's import settings. That doesn't work anymore.

I'll add a config option which lets you change the texture filter. This could affect how the UI looks too, but in typical usage it should make no difference.

@rakzin
Copy link
Author

rakzin commented Oct 24, 2024

That would be great

@rakzin
Copy link
Author

rakzin commented Oct 24, 2024

As Omar replied me in a question post,
they added something to change the render state.

https://bsky.app/profile/ocornut.bsky.social/post/3l7alfgrfua2q

Hope this can be usefull

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants