O'Reilly logo

Learning Three.js: The JavaScript 3D Library for WebGL by Jos Dirksen

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Summary

We've talked about a lot of different post processing options in this chapter. As you've already seen, creating the EffectComposer instances and chaining the passes together is actually very easy. The main subjects to remember from this chapter are the following:

  • Not all the passes output to the screen. If you want to output to the screen you can always use a ShaderPass with a CopyShader.
  • The sequence in which you add the passes to a composer is important. The effects are applied in that sequence.
  • If you want to reuse the result from a specific EffectComposer, you can do so by using a TexturePass.
  • When you have more than one RenderPass in your EffectComposer object, make sure to set the clear property to false. If not, you'll only see the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required