From e383e52320ea91c616e4aa471a0a792e5b895cfb Mon Sep 17 00:00:00 2001 From: Colin Megill Date: Thu, 5 Jul 2018 15:53:03 -0400 Subject: [PATCH] replace viewportwidth with 1 --- src/components/graph/drawPointsRegl.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/components/graph/drawPointsRegl.js b/src/components/graph/drawPointsRegl.js index e8c6b39b..b4adf8c9 100644 --- a/src/components/graph/drawPointsRegl.js +++ b/src/components/graph/drawPointsRegl.js @@ -39,13 +39,7 @@ export default function(regl) { distance: regl.prop("distance"), view: regl.prop("view"), projection: (context, props) => { - return mat4.perspective( - [], - Math.PI / 2, - context.viewportWidth * props.scale / context.viewportHeight, - 0.01, - 1000 - ); + return mat4.perspective([], Math.PI / 2, 1, 0.01, 1000); } },