godotengine / godot

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

Subviewport content cannot be rendered correctly on MacOS Chrome after exporting to html5 #96367

Open tiomke opened 2 weeks ago

tiomke commented 2 weeks ago

Tested versions

System information

MacOS 14.1(M3 Pro) - Godot v4.3.stable - Chrome 128.0.6613.114 (arm 64)

Issue description

When I use Subviewport to draw content, whether it is through SubviewportContainer or ViewportTexture, after exporting to HTML5, it cannot be rendered normally on Chrome.

some additional information:

Scene Node Tree:

截屏2024-08-31 15 05 12

Inspect pannel:

截屏2024-08-31 15 14 13

Expect View:

截屏2024-08-31 15 05 29

View in Chrome:

截屏2024-08-31 15 05 57

Steps to reproduce

Just add Subviewport to Scene and use Remote Debug - Run in Browser

截屏2024-08-31 15 22 35

Minimal reproduction project (MRP)

MRP.zip

passivestar commented 2 weeks ago

Noticed this too while looking through gmtk submissions, for example this game can't render the shadow on the wall that's most likely a subviewport in Brave. But it works fine in Firefox

macOS 14.5