Skip to content

Commit

Permalink
Fix canvas blurring issue (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
saich08 authored Jan 2, 2022
1 parent b679e16 commit 6b40f3e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/context.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ var GlobalContext = {
// init renderer
GlobalContext.renderer = new THREE.WebGLRenderer();
GlobalContext.renderer.setSize(canvasWidth, canvasHeight);
GlobalContext.renderer.setPixelRatio(window.devicePixelRatio);

// append render and label renderer to canvas
canvas.appendChild(GlobalContext.renderer.domElement);
Expand Down

0 comments on commit 6b40f3e

Please sign in to comment.