Sign in to follow this  

Pixelated Texture, Anisotropic Filtering?

This topic is 1454 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, I noticed that Minecraft has an option to enable anisotropic filtering. I was wondering, what settings would I need to put into a D3D11_SAMPLER_DESC to achieve this without blurring the textures? I'm using pixelated textures so I'd like AF to not blur them. The only way I've been able to fix this is to upscale the textures, but that seems... wrong.

samplerdesc.Filter = D3D11_FILTER_ANISOTROPIC;
samplerdesc.AddressU = D3D11_TEXTURE_ADDRESS_WRAP;
samplerdesc.AddressV = D3D11_TEXTURE_ADDRESS_WRAP;
samplerdesc.AddressW = D3D11_TEXTURE_ADDRESS_WRAP;
samplerdesc.MaxAnisotropy = 16;
samplerdesc.ComparisonFunc = D3D11_COMPARISON_ALWAYS;
samplerdesc.MaxLOD = D3D11_FLOAT32_MAX;

Thanks smile.png

Share this post


Link to post
Share on other sites

This topic is 1454 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this