()
| 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 | |
| 94 | export class HelloCameraApp extends App { |
no test coverage detected