Skip to content

Commit

Permalink
Set per-pass uniforms when postprocessing (#8801)
Browse files Browse the repository at this point in the history
  • Loading branch information
felixpalmer committed Apr 29, 2024
1 parent a287eba commit 4511f61
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/core/src/effects/post-process-effect.ts
Expand Up @@ -44,7 +44,8 @@ export default class PostProcessEffect<ShaderPassT extends ShaderPass> implement
}
const clearCanvas = !renderToTarget || Boolean(params.clearCanvas);
const moduleSettings = {};
moduleSettings[this.module.name] = this.props;
const uniforms = this.module.passes[index].uniforms;
moduleSettings[this.module.name] = {...this.props, ...uniforms};
passes[index].render({clearCanvas, inputBuffer, outputBuffer, moduleSettings});

const switchBuffer = outputBuffer as Framebuffer;
Expand Down

0 comments on commit 4511f61

Please sign in to comment.