Quick tip: Shaders in Sublime Text
I prefer to store my shaders as a separate file. And to do this in the same way as three.js all shader code must be enclosed in quotes and comma-separated. Enter this in the search and replace boxes in Sublime Text and you have a quick way to prepare your shaders for three.js:
Note the ‘regular expression’ button must be active.