From 035b8ee96f3300c6683b14e5f2de6afbc8d7cfef Mon Sep 17 00:00:00 2001 From: Dustin Carlino Date: Wed, 21 Oct 2020 10:50:40 -0700 Subject: [PATCH] Fix alpha colors on the web by making the background canvas black instead of white. https://webglfundamentals.org/webgl/lessons/webgl-and-alpha.html has other workarounds, but I can't figure out how to control the webgl context parameters. Also improve the loading message that appears before wasm has taken over. --- game/index.html | 8 ++++++-- widgetry_demo/index.html | 8 ++++++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/game/index.html b/game/index.html index 7f49a8b910..6d7ea02aae 100644 --- a/game/index.html +++ b/game/index.html @@ -11,7 +11,11 @@ run(); - -

Loading...

+ +
+

Loading... this may take up to 30 seconds

+

If you think something has broken, check your browser's developer console (Ctrl+Shift+I or similar)

+

Your browser must support WebGL or WebAssembly.

+
diff --git a/widgetry_demo/index.html b/widgetry_demo/index.html index e59c8804f4..b0004a9b79 100644 --- a/widgetry_demo/index.html +++ b/widgetry_demo/index.html @@ -11,7 +11,11 @@ run(); - -

Loading...

+ +
+

Loading... this may take up to 30 seconds

+

If you think something has broken, check your browser's developer console (Ctrl+Shift+I or similar)

+

Your browser must support WebGL or WebAssembly.

+