Book Image

Learning Three.js - the JavaScript 3D Library for WebGL

By : Jos Dirksen
Book Image

Learning Three.js - the JavaScript 3D Library for WebGL

By: Jos Dirksen

Overview of this book

Table of Contents (20 chapters)
Learning Three.js – the JavaScript 3D Library for WebGL Second Edition
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
8
Creating and Loading Advanced Meshes and Geometries
Index

Postprocessing passes


Three.js comes with a number of postprocessing passes you can use directly with THREE.EffectComposer. 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. The following table gives an overview of the passes that are available:

Pass name

Description

THREE.BloomPass

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

THREE.DotScreenPass

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

THREE.FilmPass

This simulates a TV screen by applying scanlines and distortions.

THREE.GlitchPass

This shows an electronic glitch on the screen at a random time interval.

THREE.MaskPass

This allows you to apply a mask to the current image. Subsequent passes are only applied to the masked area.

THREE.RenderPass

This renders a scene based on the supplied...