mirror of
https://github.com/a-b-street/abstreet.git
synced 2024-12-24 23:15:24 +03:00
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.
This commit is contained in:
parent
8bc6b09b10
commit
035b8ee96f
@ -11,7 +11,11 @@
|
||||
run();
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<h1 id="loading">Loading...</h1>
|
||||
<body style="background-color:black;">
|
||||
<div id="loading" style="color:white;">
|
||||
<h1>Loading... this may take up to 30 seconds</h1>
|
||||
<h2>If you think something has broken, check your browser's developer console (Ctrl+Shift+I or similar)</h2>
|
||||
<h3>Your browser must support WebGL or WebAssembly.</h3>
|
||||
</div>
|
||||
</body>
|
||||
<html>
|
||||
|
@ -11,7 +11,11 @@
|
||||
run();
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<h1 id="loading">Loading...</h1>
|
||||
<body style="background-color:black;">
|
||||
<div id="loading" style="color:white;">
|
||||
<h1>Loading... this may take up to 30 seconds</h1>
|
||||
<h2>If you think something has broken, check your browser's developer console (Ctrl+Shift+I or similar)</h2>
|
||||
<h3>Your browser must support WebGL or WebAssembly.</h3>
|
||||
</div>
|
||||
</body>
|
||||
<html>
|
||||
|
Loading…
Reference in New Issue
Block a user