Render Postprocessing
In this chapter, we’ll look at one of the main features of Three.js that we haven’t touched upon yet: render postprocessing. With render postprocessing, you can add additional effects to your scene after it is rendered. For instance, you could add an effect that makes the scene look like it is shown on an old TV, or you could add blur and bloom effects.
The main points we’ll discuss in this chapter are as follows:
- Setting up Three.js for postprocessing
- Some basic postprocessing passes provided by Three.js, such as
BloomPass
andFilmPass
- Applying effects to part of a scene using masks
- Using
ShaderPass
to add even more basic postprocessing effects, such as sepia filters, mirror effects, and color adjustments - Using
ShaderPass
for various blurring effects and more advanced filters - Creating a custom postprocessing effect by writing a simple shader
In Chapter 1, Creating Your First 3D Scene with Three.js, in...