Post news Report RSS 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 on

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
NicolasLee
NicolasLee - - 74 comments

Fantastic and beautiful. Happy new year!

Reply Good karma Bad karma+2 votes
Wizardum
Wizardum - - 23 comments

this looks great! tracking.

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

Reply Good karma Bad karma+2 votes
CrowbarSka Author
CrowbarSka - - 297 comments

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.

Reply Good karma+2 votes
Post a comment

Your comment will be anonymous unless you join the community. Or sign in with your social account: