Add palette system

This commit is contained in:
schmelczerandras 2020-09-23 16:27:02 +02:00
parent f60ae06f59
commit 98d1fc9ca2
19 changed files with 196 additions and 113 deletions

View file

@ -12,8 +12,8 @@ export class LightsRenderPass extends RenderPass {
this.drawables.push(drawable);
}
public render(commonUniforms: any, inputTexture?: WebGLTexture) {
this.frame.bindAndClear(inputTexture);
public render(commonUniforms: any, ...inputTextures: Array<WebGLTexture>) {
this.frame.bindAndClear(inputTextures);
const tileCenterWorldCoordinates = vec2.transformMat2d(
vec2.create(),