Unity - 2D shader / lighting like Terraria or Starbound

I have a map with many sprites. I could add material to the diffuse shader sprite and then add a lot of light sources. But that will not give me the result I want. And the performance is heavy.


Examples

The first image shows that the light is generated by torches. It expands its light at its best through “open spaces” and stops fairly quickly in blocks.

enter image description here


. - 2D ? , . , . , . .

enter image description here


. . - . , .

enter image description here


Raycasting?

, - raycasting? " " -? . , Terraria/Starbound. , , - .


Minecraft

Minecraft . . Smooth Lightning, () .

, , . , . ( ) , , .


: , , , . Unity . , - . , Unity.

, Unity Marketplace.


,

, . , Unity, Terraria/Starbound, :

,

Terraria/Starbound 2d?


, , , 2d light Starbound:

https://www.youtube.com/watch?v=F5d-USf69SU

, , , , .


.

Gamedev: https://gamedev.stackexchange.com/questions/155440/unity-2d-shader-lighting-like-terraria-or-starbound

: https://answers.unity.com/questions/1480518/2d-shader-lighting-like-terraria-or-starbound.html


+7
2

2 2d Dynamic Lighting .

  1. , 2d Unity Essentials, DDL, .
  2. , Unity , - ( 2019.2). Unity Lightweight RP 2d .
+1

, Unity Asset Store . "2d lighting" "2d shader". Unity . , .

. , ( ), .

0

Source: https://habr.com/ru/post/1694884/


All Articles