Skip to content

Commit 60e0763

Browse files
authored
Fix autorender (#332)
1 parent bfd2dc9 commit 60e0763

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/multiframe.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,11 @@ class Multiframe {
351351
// blend the camera's render target colour buffer with the multiframe accumulation buffer.
352352
// writes results to the backbuffer.
353353
update() {
354+
if (!this.enabled) {
355+
this.finalRenderPass.render();
356+
return false;
357+
}
358+
354359
const sampleCnt = this.sampleArray.length;
355360
const { sourceTex } = this;
356361

0 commit comments

Comments
 (0)