Any advice for 2D sprite shading?
Ive just recently picked up UE4 and have figured out how to do a 2D Sprite side scroller.
Ive been wondering if it were possible to perform shader effects on sprites.
(Specifically I want to be able to create a flash light effect, where the player moves his flash light around the screen, changing the shading of the background)
asked Jun 12 '14 at 01:07 PM in Rendering
HI Skas -
Ok, since you are working with 2D sprites lighting is not really a great solution, but you can adjust the materials of your objects themselves. First I would suggest you take a moment and look at these tutorials from our Lead Technical Artist Alan Willard, **pt.1 here** and **pt.2 here**. I am using his Sphere Masking technique to function as a Lerp's Alpha to switch between, in my test case, black and my Sprite background Texture. This should get you started on implementing the effect. You would just need to hook up the setting of the Scalar, Vector, and Location variables in your Character's Blueprint.
answered Jun 12 '14 at 08:08 PM
Lovecraft_K ♦♦ STAFF
Follow this question
Once you sign in you will be able to subscribe for any updates here