EffectComposer.js add function removePass()
See original GitHub issueIs your feature request related to a problem? Please describe.
I need to conveniently and dynamically enable/disable effects. I am doing this by adding functionality, but it would be nice to have it initially
Describe the solution you’d like
EffectComposer.prototype.removePass = function(targetPass) {
this.passes = this.passes.filter(pass => {
return pass.constructor.name != targetPass.constructor.name
})
}
Describe alternatives you’ve considered
did not met
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
EffectComposer – three.js docs
Adds the given pass to the pass chain. # .dispose () : undefined. Frees the GPU-related resources allocated by this instance. Call this...
Read more >Can't implement post.processing with EffectComposer in ...
Im trying to implement post-processing effects in Three.js ... domElement); // add EFFECT composer = new EffectComposer(renderer); composer.
Read more >How to use the postprocessing.EffectComposer function in ...
EffectComposer examples, based on popular ways it is used in public projects. ... () => this.resize()); this.composer = new EffectComposer(this.renderer); ...
Read more >EffectComposer | postprocessing
A post processing library that provides the means to implement image filter effects for three.js.
Read more >Three.js Post Processing
EffectComposer (renderer);. Then as the first pass we add a RenderPass that will render our scene with our camera into the first render...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Done. https://github.com/mrdoob/three.js/commit/3cda712be8b605c9e3ef50edc76eb44cd13a90be
Have you considered to just set
Pass.enabled
tofalse
if the composer should skip a pass?