A downloadable tool

Download NowName your own price

A simple effect that imitates rays of light on a 2D surface. Note that it's not projecting any real light that interacts with objects or casts shadows - it's just an animated texture based on Perlin noise shader.

It can be pretty useful for adding some atmospheric effects to 2D games. It's lightweight and works great on mobile devices.

How to use

To create new LightRays 2D object in your scene, click on GameObject menu in Unity window, then go to Effects and then click LightRays2D.

That's it, now you have a quad with LightRays tecture on it. Now you can resize it, set the colors and adjust the sliders untill you achieve the desired effect.

Check out my other assets!


2017-03-18 - Fixed a floating point issue.

2017-03-19 - Added option for a second color to create a gradient.

2017-10-28 - Added scripts so the object could be instantiated from menu. Updated the shader.

2017-11-24 - Added support for sorting layers. Works same as for sprites.

More information

Published 251 days ago
StatusReleased
CategoryTool
Rating
(1)
AuthorAndrii
Tags2D, effect, light, unity, unity2d, unity3d

Download

Download NowName your own price

Click download now to get access to the following files:

LightRays2Dv1.02.unitypackage 6 kB

Comments

Log in with your itch.io account to leave a comment.

(+1)

Thanks, that is amazing!!!

(+1)

thanks for all of your assets, youre actually godly.

(+1)

Thanks! It really does add a nice touch to the background