2D Lights in Unity!

Brackeys · 671K views · 2019 · 13:46

Open on YouTube

Indie game developmentGame programming & enginesComputer graphics & renderingtutorialdated

Why Stack Overflow recommends it

Stack Overflow users link it when answering questions about getting 2D lighting and shadows working in Unity with the 2D Renderer.

Recommended by 3 people across 3 different months, 2019 to 2022.

What it is

A 2019 Unity tutorial by Brackeys showing how to set up 2D lights with the then-new 2D Renderer (Lightweight RP). It walks through creating light objects and getting lit 2D sprites in a project, with downloadable project files.

What people said

Recommends Jack Mariani · 2019-07 · Stack Overflow · on “Unity - 2D shader / lighting like Terraria or Starbound”

I can mention 2 main elements about 2d Dynamic Lighting for unity. One of the main asset used for 2d lighting in unity essentials is DDL light [LINK] , with an official tutorial here [LINK] . Most importantly Unity itself is working on a Dynamic lighting system, currently in beta (for 2019.2). Unity introduced the package Lightweight RP for 2d lights here [LINK] and there's a tutorial here [this video] .

Recommends SushiWaUmai · 2020-09 · Stack Overflow · on “How do you make 2D shadows in Unity?”

You could use Unity's experimental 2D Renderer with 2D lights and the Shadow Caster 2D Component Here is a Brackeys video about 2D Renderer and 2D lights: [this video] The Documentation to the Shader Caster 2D Component: [LINK] You could also use this Asset without getting deep into the 2D Rendering. [LINK]

Recommends Help · 2022-05 · Stack Overflow · on “Unity 2D lighting now showing up”

I found the answer to my problem, I got rid of all of the normal lights and downloaded the LightWeight RP from the package manager, then I created a 2D light, which is better for 2D, I also followed the tutorial here: [this video] :)

Cites CherryFake · 2019-12 · Stack Overflow · on “2D Lighting directional shadows?”

So I'm making a 2D game and want "realistic" lighting effects. I'm using the 2D lighting that comes with the LWRP Package i saw in this video: [this video] Now it looks like this: [LINK] But i want my objects to throw directional shadows, like this: [LINK] I am a beginner when it comes to shaders and stuff like that. Hope there is a not-too-complicated solution :)