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!

2018-05-20 - Added s way to create a Canvas object.

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.

Made withUnity
Tags2D, effect, light, Unity, unity2d, unity3d


Download NowName your own price

Click download now to get access to the following files:

LightRays2Dv1.03.unitypackage 7 kB


Log in with itch.io to leave a comment.

so cool, and I tried it in my URP (LWRP) 2d and it works perfectly, thanks a lot for this awesome stuff!

Looks great, is this support URP?

Works like a charm. There is a bug that chooses sorting layer and clicks "Add sorting layer", nothing happened but only warning message:

ExecuteMenuItem failed because there is no menu named 'Edit/Project Settings/Tags and Layers'

UnityEngine.StackTraceUtility:ExtractStackTrace ()

LightRays2DEditor:OnInspectorGUI () (at Assets/LightRays2D/Editor/LightRays2DEditor.cs:97)

UnityEditor.EditorGUI/PopupCallbackInfo:SetEnumValueDelegate (object,string[],int)

It's very helpful for my project, thanks !

Just amazing


Thanks, that is amazing!!!


thanks for all of your assets, youre actually godly.


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