Spot Lighting Dave Bollinger, Dec 2006 http://www.davebollinger.com for Processing 0123 Beta Quick & Dirty Spot Lighting Move mouse to change light position The effect is similar to additive blending, but is actually multiplicative, so doesn't tend to whitewash as much as additive. The formula is basically RGB' = RGB * (1+light) (though it appears slightly different in coded form due to minor factoring) To compare: Press 'a' or 'A' to use additive blending Press 's' or 'S' to use multiplicative (spotlight) blending
Source code: SpotLighting
Built with Processing