Skip to content

Conversation

@AAAYaKo
Copy link
Collaborator

@AAAYaKo AAAYaKo commented Sep 10, 2025

Discovered a problem on older iPhones (iPhone SE A1723, iOS 15.8.4) some SDFQuad is rendered in black instead of the color used in the material. The suggested changes based on initial testing should resolve this issue.

@AAAYaKo AAAYaKo changed the title Аix shader for old IPhone Fix shader for old IPhone Sep 10, 2025
@AAAYaKo
Copy link
Collaborator Author

AAAYaKo commented Sep 10, 2025

Similar issues may also be found in other SDF components. The changes made should work more stably on older versions of Metal.

@TLabAltoh
Copy link
Owner

TLabAltoh commented Sep 11, 2025

Thanks for the pull request! I tested it on my development machine, and it seems much more stable. I don't have an iOS device to test on, but I'm confident in your changes and plan to merge this soon.


I'll be making a small adjustment after the merge to fix an issue with the SDF texture rotation. This involves swapping the y-axis values for graphicsPatternSample and outlinePatternSample in Pattern-Distance.hlsl. This bug was in the original code, not your pull request.

@TLabAltoh TLabAltoh merged commit 3465bbe into TLabAltoh:master Sep 11, 2025
TLabAltoh added a commit that referenced this pull request Sep 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants