Improve color handling approach
This commit is contained in:
parent
e53ca905af
commit
f29293c475
22 changed files with 259 additions and 181 deletions
|
|
@ -14,14 +14,7 @@ export class LightsRenderPass extends RenderPass {
|
|||
this.drawables.push(drawable);
|
||||
}
|
||||
|
||||
public render(
|
||||
commonUniforms: any,
|
||||
distanceTexture: WebGLTexture,
|
||||
inputTextures: Array<Texture>
|
||||
) {
|
||||
this.gl.activeTexture(this.gl.TEXTURE0);
|
||||
this.gl.bindTexture(this.gl.TEXTURE_2D, distanceTexture);
|
||||
|
||||
public render(commonUniforms: any, inputTextures: Array<Texture>) {
|
||||
this.frame.bindAndClear(inputTextures);
|
||||
|
||||
const tileCenterWorldCoordinates = vec2.transformMat2d(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue