I came across the following code snippet intended for webgl, and I am looking to rewrite it using three.js. However, I haven't been able to figure out how to do so. Can someone please assist me with this?
pMatrix = mat4.create();
mat4.perspective(pMatrix, 1.01, gl.drawingBufferWidth / gl.drawingBufferHeight, 10.0, 300000.0);
var eciMat = [1, 0, 0, 0,
0, 0, -1, 0,
0, 1, 0, 0,
0, 0, 0, 1
];
mat4.mul(pMatrix, pMatrix, eciMat);