Unity 2D light with soft shadows

Published: 01 September 2016
on channel: jewalky
5,947
26

Using render texture and simple shader.
Starting at line 121 http://pastebin.com/qcRXbCXN
Multiple lights would be the same thing except passed as a vector array of R/G/B/power and added to each other. Should work for typical 2D scene with ultimate maximum of 10 lights visible at any time, although still unoptimized.


On this page of the site you can watch the video online Unity 2D light with soft shadows with a duration of hours minute second in good quality, which was uploaded by the user jewalky 01 September 2016, share the link with friends and acquaintances, this video has already been watched 5,947 times on youtube and it was liked by 26 viewers. Enjoy your viewing!