Skip to content

Commit

Permalink
fix clear
Browse files Browse the repository at this point in the history
  • Loading branch information
greggman committed Dec 4, 2023
1 parent a7acf17 commit a39e457
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions examples/js/index/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ function render(time) {
time *= 0.001;

twgl.resizeCanvasToDisplaySize(canvas);
gl.disable(gl.SCISSOR_TEST);
gl.clearColor(0, 0, 0, 0);
gl.clear(gl.COLOR_BUFFER_BIT);

canvas.style.transform = `translateX(${window.scrollX}px) translateY(${window.scrollY}px)`;

Expand Down

0 comments on commit a39e457

Please sign in to comment.