Skip to content

Commit

Permalink
Update bloom.js to discard useless wait
Browse files Browse the repository at this point in the history
  • Loading branch information
enzofrancescaHM authored Jan 30, 2025
1 parent d86dd9f commit 2b409aa
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions examples/post-process/bloom.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,8 @@ AFRAME.registerComponent("bloom", {

var that = this;

// delay half second to get the right resolution
setTimeout(function () {
that.evaluateEffect();
that.bind();
}, 500);
that.evaluateEffect();
that.bind();
},
update: function (oldData) {
console.log("Post-processing UPDATE effect");
Expand Down

0 comments on commit 2b409aa

Please sign in to comment.