Skip to content

Anti-aliasing or Something Issue With Tilemap Shader #1289

Answered by zicklag
zicklag asked this question in Q&A
Discussion options

You must be logged in to vote

Praise the Lord, I just figured it out!

texture.sampler = SamplerDescriptor {
     min_filter: FilterMode::Nearest,
     ..Default::default()
 };

I can't believe that worked. I've been trying to get this to work for quite some hours now. I figured it had to be some sampling error becaues the UVs looked great, so I just search the Bevy codebase for Sampler, found SamplerDescriptor and then found that some filters were not set to Nearest by default.

It's so pretty!

Replies: 1 comment 2 replies

Comment options

zicklag
Jan 23, 2021
Collaborator Author

You must be logged in to vote
2 replies
@automeowtion
Comment options

@zicklag
Comment options

zicklag Jan 26, 2022
Collaborator Author

Answer selected by zicklag
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants