Add textures

This commit is contained in:
schmelczerandras 2020-10-04 10:48:26 +02:00
parent 5723b91b32
commit 7bfad8711b
25 changed files with 407 additions and 104 deletions

View file

@ -1,5 +1,6 @@
import { vec2 } from 'gl-matrix';
import { Drawable } from '../../../drawables/drawable';
import { Texture } from '../../graphics-library/texture/texture';
import { Insights } from '../insights';
import { RenderPass } from './render-pass';
@ -14,7 +15,7 @@ export class DistanceRenderPass extends RenderPass {
this.drawables.push(drawable);
}
public render(commonUniforms: any, ...inputTextures: Array<WebGLTexture>) {
public render(commonUniforms: any, ...inputTextures: Array<Texture>) {
this.frame.bindAndClear(inputTextures);
const stepsInUV = 1 / this.tileMultiplier;