Full JS rendering example.
This commit is contained in:
@ -32,6 +32,7 @@ class TestScene extends Scene {
|
||||
shaderUse(this.shader);
|
||||
shaderUseCamera(this.shader, this.camera);
|
||||
shaderUsePosition(this.shader, 0,0,0, 0,this.game.time.current,0);
|
||||
shaderUseTexture(this.shader, this.texture);
|
||||
primitiveDraw(this.quad, 0, -1);
|
||||
}
|
||||
|
||||
@ -43,6 +44,7 @@ class MainGame extends Game {
|
||||
constructor() {
|
||||
super();
|
||||
this.setScene(new TestScene(this));
|
||||
this.scene.init();
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user