kill errors pending view matrix fix

This commit is contained in:
Colin Megill
2018-05-10 00:00:01 -07:00
parent 3307c508d5
commit b097c32fee

View File

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