Organize imports and work on integrating lighting
This commit is contained in:
parent
0cd383794c
commit
affb1b4f4f
16 changed files with 170 additions and 155 deletions
|
|
@ -1,21 +1,21 @@
|
|||
import caveFragmentShader from '../shaders/cave-distance-fs.glsl';
|
||||
import lightsShader from '../shaders/lights-shading-fs.glsl';
|
||||
import caveVertexShader from '../shaders/passthrough-distance-vs.glsl';
|
||||
import lightsVertexShader from '../shaders/passthrough-shading-vs.glsl';
|
||||
// import lightsShader from '../shaders/rainbow-shading-fs.glsl';
|
||||
import { CommandBroadcaster } from './commands/command-broadcaster';
|
||||
import { BeforeDrawCommand } from './commands/types/before-draw';
|
||||
import { DrawCommand } from './commands/types/draw';
|
||||
import { StepCommand } from './commands/types/step';
|
||||
import { WebGl2Renderer } from './drawing/webgl2-renderer';
|
||||
import { timeIt } from './helper/timing';
|
||||
import { KeyboardListener } from './input/keyboard-listener';
|
||||
import { MouseListener } from './input/mouse-listener';
|
||||
import { TouchListener } from './input/touch-listener';
|
||||
import { CommandBroadcaster } from './commands/command-broadcaster';
|
||||
import { ObjectContainer } from './objects/object-container';
|
||||
import { DrawCommand } from './commands/types/draw';
|
||||
|
||||
import { StepCommand } from './commands/types/step';
|
||||
import { Character } from './objects/types/character';
|
||||
import { InfoText } from './objects/types/info-text';
|
||||
import { timeIt } from './helper/timing';
|
||||
|
||||
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';
|
||||
import { InfoText } from './objects/types/info-text';
|
||||
|
||||
export class Game {
|
||||
private previousTime: DOMHighResTimeStamp = 0;
|
||||
|
|
@ -37,8 +37,8 @@ export class Game {
|
|||
);
|
||||
|
||||
this.renderer = new WebGl2Renderer(canvas, overlay, [
|
||||
caveFragmentShader,
|
||||
lightsShader,
|
||||
[caveVertexShader, caveFragmentShader],
|
||||
[lightsVertexShader, lightsShader],
|
||||
]);
|
||||
|
||||
this.initializeScene();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue