Add frame buffers
This commit is contained in:
parent
066314ede8
commit
582979d3ed
13 changed files with 309 additions and 102 deletions
|
|
@ -11,7 +11,9 @@ import { Character } from './objects/types/character';
|
|||
import { InfoText } from './objects/types/info-text';
|
||||
import { timeIt } from './helper/timing';
|
||||
|
||||
import caveFragmentShader from '../shaders/cave-fs.glsl';
|
||||
import caveFragmentShader from '../shaders/cave-distance-fs.glsl';
|
||||
import lightsShader from '../shaders/rainbow-shading-fs.glsl';
|
||||
//import lightsShader from '../shaders/lights-shading-fs.glsl';
|
||||
import { Dungeon } from './objects/types/dungeon';
|
||||
import { BeforeDrawCommand } from './commands/types/before-draw';
|
||||
|
||||
|
|
@ -34,7 +36,10 @@ export class Game {
|
|||
[this.objects]
|
||||
);
|
||||
|
||||
this.renderer = new WebGl2Renderer(canvas, overlay, [caveFragmentShader]);
|
||||
this.renderer = new WebGl2Renderer(canvas, overlay, [
|
||||
caveFragmentShader,
|
||||
lightsShader,
|
||||
]);
|
||||
|
||||
this.initializeScene();
|
||||
requestAnimationFrame(this.gameLoop.bind(this));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue