Lens flare and light scattering

http://vimeo.com/44188511

I’ve been playing a lot with shaders lately, this is my latest experiment. It might be useful to somebody :slight_smile:

Source: https://github.com/daanvanhasselt/lensflare

Hello Daan!!

This look amazing!! thanks for sharing!

this looks interesting.

but if i compare it to the implementation, which you mentioned on github then i do see a few difference.

how would i get those halo’s and flares?
you code seems to focus on the lens dirt.

thanks,
stephan.

this looks interesting.

but if i compare it to the implementation, which you mentioned on github then i do see a few difference.

how would i get those halo’s and flares?
you code seems to focus on the lens dirt.

thanks,
stephan.

hi folks

i have been trying to get this example working on a mbp 2.3 i7 NVIDIA GeForce GT 650M 1024 MB,
and i am getting a lot of artefacting, i had this working on my last computer, I had looked through the code and it looks and it is the lightscattering.frag.

if I make num_sample to be < 7 the there is no artefacting but at 8 it starts to come in NUM_SAMPLES = 7

do you think it is a graphics card problem?
is there any other examples of volumetric lighting?
any help would be fantastic
Best
Ben