Skip to content

Commit 04c9636

Browse files
committed
fix build
1 parent f3936e5 commit 04c9636

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

frontend/src/ts/Viewport/SceneCamera.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
1-
import mat4 from "../math/mat4";
21
import R3Object from "../project/R3Object";
32
import PerspectiveProjection from "../projection/PerspectiveProjection";
3+
import Projection from "../projection/Projection";
44
import Camera from "./Camera";
55

66
export default class SceneCamera extends R3Object implements Camera {
7+
renderDepth(renderPassEncoder: GPURenderPassEncoder): void {
8+
renderPassEncoder;
9+
throw new Error("Method not implemented.");
10+
}
711
render(renderPassEncoder: GPURenderPassEncoder): void {
812
renderPassEncoder;
913
throw new Error("Method not implemented.");
@@ -17,8 +21,8 @@ export default class SceneCamera extends R3Object implements Camera {
1721
throw new Error("Method not implemented.");
1822
}
1923

20-
getProjectionMatrix(width: number, height: number): mat4 {
21-
return this.projection.getProjectionMatrix(width, height);
24+
getProjection(): Projection {
25+
throw new Error("Method not implemented.");
2226
}
2327

2428
getViewMatrix() {

frontend/src/ts/lights/EnvironmentLight.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
import R3Object from "../project/R3Object";
22

33
export class EnvironmentLight extends R3Object {
4+
renderDepth(renderPassEncoder: GPURenderPassEncoder): void {
5+
renderPassEncoder;
6+
throw new Error("Method not implemented.");
7+
}
48
render(renderPassEncoder: GPURenderPassEncoder): void {
59
renderPassEncoder;
610
throw new Error("Method not implemented.");

0 commit comments

Comments
 (0)