Archive for: June, 2015

Continue Reading udart_out.dk header image

Quick tip: Shaders in Sublime Text

Sublime Text is my favorite text editor and here’s a quick tip if you’re working with shaders in three.js. 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.