Making my way through the Using lights recipe from the Processing 2 Creative programming cookbook source code on GitHub. In this recipe, I learned how to declare the lightMode and lightDirection integers to allow for different lighting modes to be activated. Inside the setUp function they’re assigned a value of 0 and then referenced again in the if test. […]
Categories
Using lights
![](https://i0.wp.com/rowanpeter.com/wp-content/uploads/2014/04/Screen-Shot-2014-05-15-at-9.30.43-PM.jpg?fit=672%2C372&ssl=1)