MCPcopy Create free account
hub / github.com/DjDeveloperr/deno_desktop / buildViewProjMatrix

Method buildViewProjMatrix

examples/hello_camera.js:85–91  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

83 }
84
85 buildViewProjMatrix() {
86 const view = Matrix4.lookAtRh(this.eye, this.target, this.up);
87 const proj = new PerspectiveFov(new Deg(this.fovy), this.aspect, this.znear, this.zfar)
88 .toPerspective()
89 .toMatrix4();
90 return OPENGL_TO_WGPU_MATRIX.mul(proj.mul(view)).toFloat32Array();
91 }
92}
93
94export class HelloCameraApp extends App {

Callers 1

updateViewProjMatrixMethod · 0.80

Calls 5

toPerspectiveMethod · 0.80
lookAtRhMethod · 0.45
toMatrix4Method · 0.45
toFloat32ArrayMethod · 0.45
mulMethod · 0.45

Tested by

no test coverage detected