Add glsl loader
This commit is contained in:
parent
ac66c91000
commit
ef315b7089
15 changed files with 150 additions and 150 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue