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

Envatlas mipmap fix #4193

Merged
merged 1 commit into from
Apr 12, 2022
Merged

Envatlas mipmap fix #4193

merged 1 commit into from
Apr 12, 2022

Conversation

slimbuck
Copy link
Member

We generate a 1-pixel border around equirect mipmaps in the envatlas and must be careful not to rely on smaller mips which are predominantly mipmap border (i.e. sizes 1x1, 2x2, 4x4).

This PR removes the last level of mipmap we were relying on from the shiny reflections, because it was causing unruly aliasing on thin sliver polygons.

Here is a closeup of a vehicle under harsh lighting conditions demonstrating the aliasing before and after:

env-aliasing

@slimbuck slimbuck added bug area: graphics Graphics related issue labels Apr 11, 2022
@slimbuck slimbuck requested a review from a team April 11, 2022 14:57
@slimbuck slimbuck self-assigned this Apr 11, 2022
Copy link
Contributor

@willeastcott willeastcott left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps the greatest PR ever developed by humankind.

@slimbuck slimbuck merged commit 3b32c99 into playcanvas:main Apr 12, 2022
@slimbuck slimbuck deleted the env-fix branch April 12, 2022 07:44
slimbuck added a commit that referenced this pull request Apr 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: graphics Graphics related issue bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants