godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
86.42k stars 19.25k forks source link

Compatibility renderer web export: Directional shadows malfunction on Mac browsers (Chrome, Safari), function correctly on Mac native app and Windows browsers #93537

Open cosformula opened 1 week ago

cosformula commented 1 week ago

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

image

Running preview on mac chrome(v126.0.6478.115 arm64) (both shadow and color seems wrong)

image

Running preview on windows chrome(v126.0.6478.115) img_v3_02c5_d79ad31c-b6d5-49b2-bda0-acdf3aabd66g

Additional notes: By changing the ground color, we can see that the shadow was actualy there, but in a light color

image

Steps to reproduce

Minimal reproduction project (MRP)

DirectionalShadow.zip

akien-mga commented 1 week ago

Might be related to #85567.