Skip to content

Commit e274b53

Browse files
author
Avaer Kazmer
committed
Clear layer framebuffer to alpha zero. Fixes #56.
1 parent 1cf2f74 commit e274b53

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/xr-scene.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ class XRScene extends HTMLElement {
9595
win.clear = () => {
9696
if (win.ctx) {
9797
win.ctx.binding = null;
98-
win.ctx.clearColor(0, 0, 0, 1);
98+
win.ctx.clearColor(0, 0, 0, 0);
9999
win.ctx.clear(win.ctx.COLOR_BUFFER_BIT|win.ctx.STENCIL_BUFFER_BIT|win.ctx.DEPTH_BUFFER_BIT);
100100
}
101101
};

0 commit comments

Comments
 (0)