Add glsl loader

This commit is contained in:
schmelczerandras 2020-07-20 15:52:18 +02:00
parent ac66c91000
commit ef315b7089
15 changed files with 150 additions and 150 deletions

View file

@ -3,7 +3,8 @@ import { DrawCommand } from '../../commands/types/draw';
import { MoveToCommand } from '../../commands/types/move-to';
export class Camera extends GameObject {
private inViewWidth = 1500;
private inViewArea = 1920 * 1080;
constructor() {
super();
@ -13,7 +14,7 @@ export class Camera extends GameObject {
private draw(c: DrawCommand) {
c.drawer.setCameraPosition(this.position);
this._boundingBoxSize = c.drawer.setInViewWidth(this.inViewWidth);
this._boundingBoxSize = c.drawer.setInViewArea(this.inViewArea);
}
private moveTo(c: MoveToCommand) {