Skip to content

Commit

Permalink
Update bloom.js to resize EffectComposer
Browse files Browse the repository at this point in the history
  • Loading branch information
enzofrancescaHM authored Jan 31, 2025
1 parent fbf8c44 commit 53afd13
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions examples/showcase/post-processing/bloom.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ AFRAME.registerComponent("bloom", {
render.apply(this, arguments);
} else {
isInsideComposerRender = true;
self.composer.setSize( self.renderer.domElement.clientWidth / window.devicePixelRatio, self.renderer.domElement.clientWidth / window.devicePixelRatio );
self.composer.render(self.el.sceneEl.delta / 1000);
isInsideComposerRender = false;
}
Expand Down

0 comments on commit 53afd13

Please sign in to comment.