Dylan Whiteman presents an OSL shader for the creation of lens flares. The cool thing of his setup is that it'll give you a real time preview.
Dylan writes:
I have been using Blender for several years and have recently started to learn OSL - Open Shader Language.
As a first project I embarked upon creating a lens-flare shader for Blender. In the process I came across a lens-flare shader, written for the Renderman language by Larry Gritz & Tony Apodaca.
I decided to try and port this to OSL - and to my surprise after a day of tinkering it worked! Along the way I added a few features, such as user definable images for lens-flare elements and have got to a point where the shader can now be released. Details about how to download and use this shader are given below - along with video tutorial links.
Link
6 Comments
This is fantastic, the range of effects of flare was missing. Thx very much to fill this gap.
This is probably the thing that will make me change into cycles... amazing
An excellent addition! Thanks.
This is great for in Render. Thanks.
But i still think the Compositor Flare Node needs to be updated...
Great piece of add on , thank you .
Yay...Now I can relive the 90s. ;)