Skip to content

Conversation

@johanos
Copy link

@johanos johanos commented Mar 15, 2018

I found a bug with models that use large textures,
as you can see, we start to get kinda gross aliasing when you move away from the camera

this is due to not having enabled any mip filtering since when you create an SCNMaterialProperty, it defaults to none. to fix this we simply have to enable linear mip filtering

the only downside is a performance hit because we were doing no calculations to some calculations, however this shouldn't be too bad of an issue

Before:
screen shot 2018-03-15 at 2 10 06 pm

After:
screen shot 2018-03-15 at 2 20 31 pm

@johanos johanos force-pushed the enablingMipFilters branch from cccaa34 to f546f35 Compare March 15, 2018 18:34
@magicien
Copy link
Owner

Great! Thank you for your contribution!
I've been slightly busy recently, but I'm going to check it soon!

@magicien magicien merged commit fb89720 into magicien:master Sep 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants