We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd44531 commit 91e8d9aCopy full SHA for 91e8d9a
Packages/webxr/Runtime/Plugins/WebGL/transparent_bg.jslib
@@ -1,3 +1,5 @@
1
+// Modified version of https://forum.unity.com/threads/webgl-transparent-background.284699/#post-1880667
2
+// More details at https://support.unity.com/hc/en-us/articles/208892946-How-can-I-make-the-canvas-transparent-on-WebGL-
3
var LibraryGLClear = {
4
glClear: function (mask) {
5
if (mask == 0x00004000 && GLctx.dontClearAlphaOnly) {
@@ -9,4 +11,4 @@ var LibraryGLClear = {
9
11
GLctx.clear(mask);
10
12
}
13
};
-mergeInto(LibraryManager.library, LibraryGLClear);
14
+mergeInto(LibraryManager.library, LibraryGLClear);
0 commit comments