From b097c32fee0db03b59d6a031439fd708f2adebc9 Mon Sep 17 00:00:00 2001 From: Colin Megill Date: Thu, 10 May 2018 00:00:01 -0700 Subject: [PATCH] kill errors pending view matrix fix --- src/components/graph/graph.js | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/components/graph/graph.js b/src/components/graph/graph.js index cb4516e0..b1c184fa 100644 --- a/src/components/graph/graph.js +++ b/src/components/graph/graph.js @@ -95,16 +95,16 @@ class Graph extends React.Component { scale: viewportHeight / viewportWidth }); - var view = camera.view(); // get the camera matrix - var projection = mat4.perspective( - [], - Math.PI / 2, - context.viewportWidth * props.scale / context.viewportHeight, - 0.01, - 1000 - ); // get the projection matrix - var combined = mat.multiply([], projection, view); // this is the matrix applied to the transform - this.inverse = mat.invert([], combined); // this is the inverse + // var view = camera.view(); // get the camera matrix + // var projection = mat4.perspective( + // [], + // Math.PI / 2, + // context.viewportWidth * props.scale / context.viewportHeight, + // 0.01, + // 1000 + // ); // get the projection matrix + // var combined = mat.multiply([], projection, view); // this is the matrix applied to the transform + // this.inverse = mat.invert([], combined); // this is the inverse camera.tick(); });