We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I added code to set the initial view as cameras[0] or cameras[1] by doing this:
const fr = new FileReader(); fr.onload = () => { cameras = JSON.parse(fr.result); viewMatrix = getViewMatrix(cameras[1]); projectionMatrix = getProjectionMatrix( camera.fx / downsample, camera.fy / downsample, canvas.width, canvas.height, ); gl.uniformMatrix4fv(u_projection, false, projectionMatrix); console.log("Loaded Cameras"); }; fr.readAsText(data);
I do this onload of page but the initial view is not changing. Is there anything else I should be doing?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I added code to set the initial view as cameras[0] or cameras[1] by doing this:
I do this onload of page but the initial view is not changing. Is there anything else I should be doing?
The text was updated successfully, but these errors were encountered: