Skip to content

Commit 91e8d9a

Browse files
authored
Added reference to transparent_bg
1 parent cd44531 commit 91e8d9a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Packages/webxr/Runtime/Plugins/WebGL/transparent_bg.jslib

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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-
13
var LibraryGLClear = {
24
glClear: function (mask) {
35
if (mask == 0x00004000 && GLctx.dontClearAlphaOnly) {
@@ -9,4 +11,4 @@ var LibraryGLClear = {
911
GLctx.clear(mask);
1012
}
1113
};
12-
mergeInto(LibraryManager.library, LibraryGLClear);
14+
mergeInto(LibraryManager.library, LibraryGLClear);

0 commit comments

Comments
 (0)