mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-10-04 13:08:11 +08:00
kill errors pending view matrix fix
This commit is contained in:
@@ -95,16 +95,16 @@ class Graph extends React.Component {
|
|||||||
scale: viewportHeight / viewportWidth
|
scale: viewportHeight / viewportWidth
|
||||||
});
|
});
|
||||||
|
|
||||||
var view = camera.view(); // get the camera matrix
|
// var view = camera.view(); // get the camera matrix
|
||||||
var projection = mat4.perspective(
|
// var projection = mat4.perspective(
|
||||||
[],
|
// [],
|
||||||
Math.PI / 2,
|
// Math.PI / 2,
|
||||||
context.viewportWidth * props.scale / context.viewportHeight,
|
// context.viewportWidth * props.scale / context.viewportHeight,
|
||||||
0.01,
|
// 0.01,
|
||||||
1000
|
// 1000
|
||||||
); // get the projection matrix
|
// ); // get the projection matrix
|
||||||
var combined = mat.multiply([], projection, view); // this is the matrix applied to the transform
|
// var combined = mat.multiply([], projection, view); // this is the matrix applied to the transform
|
||||||
this.inverse = mat.invert([], combined); // this is the inverse
|
// this.inverse = mat.invert([], combined); // this is the inverse
|
||||||
|
|
||||||
camera.tick();
|
camera.tick();
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user