Skip to content

Commit 65cd273

Browse files
committed
Fixed pass chaining for Bloom and God Rays.
The needsSwap flag still feels rather awkward. In fact, most passes render to the write buffer. Maybe this intention can be detected differently.
1 parent 141493f commit 65cd273

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

src/passes/bloom.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,12 @@ export class BloomPass extends Pass {
3333

3434
this.name = "BloomPass";
3535

36+
/**
37+
* This pass renders to the write buffer.
38+
*/
39+
40+
this.needsSwap = true;
41+
3642
/**
3743
* A blur pass.
3844
*

src/passes/god-rays.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,12 @@ export class GodRaysPass extends Pass {
6565

6666
this.name = "GodRaysPass";
6767

68+
/**
69+
* This pass renders to the write buffer.
70+
*/
71+
72+
this.needsSwap = true;
73+
6874
/**
6975
* A scene that only contains the light source.
7076
*

0 commit comments

Comments
 (0)