set antialiasing to true

This commit is contained in:
casperlamboo 2017-11-13 12:50:45 +01:00
parent 23087af9fc
commit 597ec406de
1 changed files with 1 additions and 1 deletions

View File

@ -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();