Summary
We discussed many different postprocessing options in this chapter. As you saw, creating EffectComposer
and chaining passes together is actually very easy. You just have to keep a few things in mind. Not all passes will have an output on the screen. If you want to output to the screen, you can always use ShaderPass
with CopyShader
. The sequence in which you add passes to a composer is important. The effects are applied in that sequence. If you want to reuse the result from a specific EffectComposer
instance, you can do so by using TexturePass
. When you have more than one RenderPass
in your EffectComposer
, make sure to set the clear
property to false
. If not, you’ll only see the output from the last RenderPass
step. If you want to only apply an effect to a specific object, you can use MaskPass
. When you’re done with the mask, clear the mask with ClearMaskPass
. Besides the standard passes provided by Three.js, there are also many standard shaders available. You...