Report article RSS Feed 2D Lighting System

Showing off a new 2D lighting system I created using additive particle shaders. Supports unlimited lights in a scene (instead of the old limit of 1).

Posted by CrowbarSka on Dec 31st, 2011

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!

Post comment Comments
Finnius
Finnius Jan 1 2012, 4:04pm says:

Fantastic and beautiful. Happy new year!

+2 votes     reply to comment
Wizardum
Wizardum Jan 1 2012, 5:44pm says:

this looks great! tracking.

I wonder, how have you done the enemy's trail effect?

+2 votes     reply to comment
CrowbarSka Author
CrowbarSka Jan 1 2012, 8:31pm replied:

There are 4 Trail Renderer objects, which are attached to a rotating parent object which is in turn attached to the jellyfish. There is also another particle emitter to add the kind of dark cloudy effect.

+2 votes   reply to comment
StefanRomanHosch
StefanRomanHosch Jan 2 2012, 3:46pm says:

love it!

+2 votes     reply to comment
Post a Comment
click to sign in

You are not logged in, your comment will be anonymous unless you join the community today (totally free - or sign in with your social account on the right) which we encourage all contributors to do.

2000 characters limit; HTML formatting and smileys are not supported - text only

News
Browse
News
Report Abuse
Report article
Related Games
Luminesca
Luminesca Single Player Adventure
Related Engines
Unity
Unity Commercial Released May 30, 2005