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

Post processing passes

The Three.js library comes with a number of post processing passes that you can use directly with an EffectComposer object. The following table gives an overview of the passes that are available. Note that it's best to play around with the examples in this chapter to see the result of these passes and understand what is happening.

Pass name

Description

BloomPass

An effect that makes the light areas bleed into the darker areas. It simulates an effect where the camera is overwhelmed by the extremely bright light.

DotScreenPass

This applies a layer of black dots across the screen that represents the original image.

FilmPass

This pass simulates a TV screen by applying scanlines and distortions.

MaskPass

This ...

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