Validation workaround `opaque-clear-alpha`: framebuffer alpha differs from WebGL with opaque clear
Maintainer antworten meist innerhalb von 1 Tag
@bkaradzic-microsoft arbeitet bereits daran.
Seit 03.11.2026.
Bewertung
Dieses Issue wurde noch nicht bewertet.
Beschreibung
Affected tests (15)
- Ribbon morphing
- Solid particle system
- RH billboard
- Particle Helper
- Area Lights - Standard Material
- Textured - Area Lights - Standard Material
- Textured - Area Lights - PBR
- Area Lights - PBR
- Enable disable post process
- Prepass SSAO + depth of field
- Prepass SSAO + on/off post-process
- Particles - Multiply Blend
- Particles - Helper - Sun
- Particles - Helper - Smoke
- Particles - Helper - Fire
What the workaround does
When the scene clears with an opaque color but the read-back image contains alpha < 1, the harness skips compositing over the canvas background (browser composites the canvas with the page). Without it, BN screenshots differ where blended geometry writes alpha < 1. Introduced in #1913.
Recommended fix
Likely the alpha channel of blended draws differs from WebGL (separate alpha blend factors / alphaMode mapping). Compare per-pixel alpha of the BN readback with WebGL readPixels for one affected test; fix the alpha blend state mapping in NativeEngine (setAlphaMode → bgfx BGFX_STATE_BLEND_FUNC_SEPARATE) so alpha matches WebGL. Then the harness can composite identically to the browser and the workaround can be removed.
Workaround implementations live in Apps/Playground/Scripts/validation_native.js (WORKAROUNDS map); tests opt in via the workarounds array in Apps/Playground/Scripts/config.json. See Documentation/AddingNewValidationTests.md.
- Vorherrschende Sprache
- C++
- Sterne
- 931
- Forks
- 169
- Ø Merge
- 2 T. 17 Std.
- Gemergte PRs (30 T.)
- 66
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus BabylonJS/BabylonNative
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
BabylonJS/BabylonNative#2138 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
BabylonJS/BabylonNative#2042 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
BabylonJS/BabylonNative#2052 ·
Maintainer antworten meist innerhalb von 1 Tag
-
testing
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 45/100
BabylonJS/BabylonNative#2136 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Support useNDCHalfZRange (half-range NDC depth) so Babylon.js half-range depth visual tests can runOffen
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 48/100
BabylonJS/BabylonNative#2134 ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in BabylonJS/BabylonNative
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 83/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
gofractally/psibase#2379 ·
Maintainer antworten meist innerhalb von 3 Tagen
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 74/100
simnJS/AnyPS5#735 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
needs-format
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
Niko1221/Strata#7719 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 4 Tagen