-
-
Notifications
You must be signed in to change notification settings - Fork 21.3k
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
Compatibility renderer web export: Directional shadows malfunction on Mac browsers (Chrome, Safari), function correctly on Mac native app and Windows browsers #93537
Comments
Might be related to #85567. |
It seems like textureProj is broken on the Metal-backend for WebGL2. I've created a test page to demonstrate the issue: A workaround is to simulate
or use As this seems to be an upstream issue(Angle, I've file an issue), I'm not sure if this is the best solution. Should I open a PR to implement this workaround? |
I'll defer to @clayjohn to decide if the workaround is acceptable, or would incur too big a performance penalty. I'd suggest also filing a WebKit bug report, they have a WebGL component and Apple developers might be more likely to be notified of the issue there than on upstream ANGLE, I suppose. The bug reports can cross-reference each other. And maybe even an Apple Feedback ticket? https://developer.apple.com/bug-reporting/ |
Thanks! |
@cosformula If |
Thanks! Made a draft PR, I'll do more test to ensure it does't cause any regression. |
Tested versions
System information
Godot v4.2.2.stable - macOS 14.5.0 - GLES3 (Compatibility) - Apple M1 Max - Apple M1 Max (10 Threads)
Issue description
Directional shadows not working correctly on mac browser(both chrome and safari), but working correctly on mac native and windows browser.
Running preview on mac
Running preview on mac chrome(v126.0.6478.115 arm64) (both shadow and color seems wrong)
Running preview on windows chrome(v126.0.6478.115)
Additional notes:
By changing the ground color, we can see that the shadow was actualy there, but in a light color
Steps to reproduce
Minimal reproduction project (MRP)
DirectionalShadow.zip
The text was updated successfully, but these errors were encountered: