We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent de7df0a commit adc2aceCopy full SHA for adc2ace
src/passes/EffectPass.js
@@ -381,6 +381,19 @@ export class EffectPass extends Pass {
381
382
}
383
384
+ /**
385
+ * Indicates whether the renderer uses alpha.
386
+ *
387
+ * @private
388
+ * @type {Boolean}
389
+ */
390
+
391
+ get alpha() {
392
393
+ return this.renderer !== null && this.renderer.getContext().getContextAttributes().alpha;
394
395
+ }
396
397
/**
398
* Sets the effects.
399
*
@@ -571,6 +584,7 @@ export class EffectPass extends Pass {
571
584
if(!this.skipRendering || this.renderToScreen) {
572
585
573
586
const material = this.fullscreenMaterial;
587
+ material.transparent = this.renderToScreen && this.alpha;
574
588
material.inputBuffer = inputBuffer.texture;
575
589
material.time += deltaTime * this.timeScale;
576
590
0 commit comments