From 597ec406deee762391e527d0f2a6be5beb3e6714 Mon Sep 17 00:00:00 2001 From: casperlamboo Date: Mon, 13 Nov 2017 12:50:45 +0100 Subject: [PATCH] set antialiasing to true --- src/interface/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/interface/utils.js b/src/interface/utils.js index f59f694..5a8fca0 100644 --- a/src/interface/utils.js +++ b/src/interface/utils.js @@ -20,7 +20,7 @@ export function createScene(canvas, props, state) { const centerZ = (geometry.boundingBox.max.z + geometry.boundingBox.min.z) / 2; geometry.applyMatrix(new THREE.Matrix4().makeTranslation(-centerX, -centerY, -centerZ)); - const renderer = new THREE.WebGLRenderer({ canvas, alpha: true }); + const renderer = new THREE.WebGLRenderer({ canvas, alpha: true, antialias: true }); renderer.setClearColor(0xffffff, 0); const scene = new THREE.Scene();