Bug 248339 - Babylon.js Shadows are incorrect on iOS with WebGL via Metal
Summary: Babylon.js Shadows are incorrect on iOS with WebGL via Metal
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: ANGLE (show other bugs)
Version: Safari 16
Hardware: iPhone / iPad iOS 16
: P2 Normal
Assignee: Nobody
URL: https://forum.babylonjs.com/t/pcf-loo...
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-11-25 02:50 PST by dizel3d
Modified: 2022-11-28 15:25 PST (History)
6 users (show)

See Also:


Attachments
iOS 15.5 Safari (431.10 KB, image/jpeg)
2022-11-25 02:50 PST, dizel3d
no flags Details
MacOS 12.6.1 Chrome, reference (5.99 MB, image/png)
2022-11-25 02:54 PST, dizel3d
no flags Details
iOS 15.5 Safari with disabled WebGL via Metal (430.34 KB, image/jpeg)
2022-11-25 03:06 PST, dizel3d
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description dizel3d 2022-11-25 02:50:47 PST
Created attachment 463724 [details]
iOS 15.5 Safari

I use Babylon.js. And I faced with an issue connection with shadow rendering. Shadows with PCF look ugly on iOS 15+ until disabling the WebGL via Metal experimental feature in Safari.
Original thread on Babylon.js Forum has more details: https://forum.babylonjs.com/t/pcf-looks-bad-on-ios/35988
Comment 1 dizel3d 2022-11-25 02:54:22 PST
Created attachment 463725 [details]
MacOS 12.6.1 Chrome, reference
Comment 2 dizel3d 2022-11-25 03:06:43 PST
Created attachment 463726 [details]
iOS 15.5 Safari with disabled WebGL via Metal
Comment 3 dizel3d 2022-11-25 03:08:40 PST
Here's a test example https://playground.babylonjs.com/#IIZ9UU#369

On iOS 15.5 Safari with ENABLED WebGL via Metal looks INCORRECTLY:
https://bugs.webkit.org/attachment.cgi?id=463724

On iOS 15.5 Safari with DISABLED WebGL via Metal CORRECTLY:
https://bugs.webkit.org/attachment.cgi?id=463726
Comment 4 Radar WebKit Bug Importer 2022-11-26 14:41:23 PST
<rdar://problem/102683818>
Comment 5 Kenneth Russell 2022-11-28 15:25:30 PST
I think this is a duplicate of Bug 232071. It's related to the filterability of depth textures when using certain depth compare modes.