This project offers a more convenient way to consult the source code of the shaders provided by three.js.
https://grgrdvrt.github.io/three_shaders_source/
Run node main.js /path/to/three.js
to generate the pages.
The current code is based on three.js r166.