August 2018
Intermediate to advanced
528 pages
10h 58m
English
First, let's look at the additional JavaScript files that you need to include. These files can be found in the Three.js distribution, in the examples/js/postprocessing and examples/js/shaders directories. For the THREE.FilmPass example, we need to include the following:
<script type="text/javascript" src="../../libs/three/postprocessing/EffectComposer.js"></script> <script type="text/javascript" src="../../libs/three/postprocessing/ShaderPass.js"></script> <script type="text/javascript" src="../../libs/three/postprocessing/MaskPass.js"></script> <script type="text/javascript" src="../../libs/three/postprocessing/RenderPass.js"></script> <script type="text/javascript" src="../../libs/three/shaders/CopyShader.js"></script> ...
Read now
Unlock full access