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

Prefilter shader fix #2531

Merged
merged 4 commits into from
Nov 6, 2020
Merged

Prefilter shader fix #2531

merged 4 commits into from
Nov 6, 2020

Conversation

slimbuck
Copy link
Member

@slimbuck slimbuck commented Nov 6, 2020

The clear coat material was rendering incorrectly on iOS with the recently updated prefilter shader (see #2522).

This PR reimplements the shader to work on iOS (while unfortunately re-introducing 6 texture samples), but keeps the seams fix.

It will be worth re-investigating whether the original fix can work on iOS.

I confirm I have signed the Contributor License Agreement.

@slimbuck slimbuck added bug area: graphics Graphics related issue labels Nov 6, 2020
@slimbuck slimbuck requested a review from a team November 6, 2020 11:10
@slimbuck slimbuck self-assigned this Nov 6, 2020
@slimbuck slimbuck merged commit 74379b0 into playcanvas:master Nov 6, 2020
@slimbuck slimbuck deleted the prefilter-fix branch November 6, 2020 11:13
Comment on lines +31 to +33
return vec3(avec.x != M ? 1.0 : 0.0,
avec.y != M ? 1.0 : 0.0,
avec.z != M ? 1.0 : 0.0);
Copy link
Contributor

Choose a reason for hiding this comment

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

this might perform slightly better

return vec3(notEqual(avec, vec3(M, M, M)));

Copy link
Member Author

Choose a reason for hiding this comment

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

cool! will try it out thanks

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

3 participants