|
@@ -4139,6 +4139,10 @@
|
|
public toGlobal(renderWidth: number, renderHeight: number): Viewport {
|
|
public toGlobal(renderWidth: number, renderHeight: number): Viewport {
|
|
return new Viewport(this.x * renderWidth, this.y * renderHeight, this.width * renderWidth, this.height * renderHeight);
|
|
return new Viewport(this.x * renderWidth, this.y * renderHeight, this.width * renderWidth, this.height * renderHeight);
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ public clone(): Viewport {
|
|
|
|
+ return new Viewport(this.x, this.y, this.width, this.height);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
export class Frustum {
|
|
export class Frustum {
|
|
@@ -4834,4 +4838,4 @@
|
|
Matrix.Zero(), Matrix.Zero(),
|
|
Matrix.Zero(), Matrix.Zero(),
|
|
Matrix.Zero(), Matrix.Zero()]; // 6 temp Matrices at once should be enough
|
|
Matrix.Zero(), Matrix.Zero()]; // 6 temp Matrices at once should be enough
|
|
}
|
|
}
|
|
-}
|
|
|
|
|
|
+}
|