Saturday 31 December 2011

2D Lighting System

Today I got a new 2D lighting system working. The old system was simply a big black square with a hole in the middle. The drawback of that system was that it only supported one light at a time, but the new one allows an unlimited number.

Please note that in this video the glow from Lum's esca does not grow when you collect planktids. This will change!


For those interested in the technique I used: it's really simple! I just attached a flat plane to each light source with a glowing sprite material. The material uses a Particles/Additive shader. Behind all this is another large plane with a semi-transparent black texture applied which darkens the background. The foreground rocks and creatures and all rendered in front of the glows so they are not obscured.

Happy New Year!

1 comment: