Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


2D lighting in URP

Techniques and resources for creating 2D lights and applying 2D lighting effects
Read time 1 minuteLast updated 19 days ago

Techniques and resources for creating 2D lights and applying 2D lighting effects.

Topic

Description

Introduction to 2D lightingUnderstand the tools and runtime components you use to create a lit 2D scene.
Create a 2D lightCreate a 2D light that illuminates compatible 2D GameObjects in your scene.
Make a GameObject compatible with 2D lightsMake a shader or a visual effect graph compatible with 2D lights.
Add a normal map or a mask map to a spriteAdd surface detail such as bumps, grooves, and scratches to a 2D sprite.
Blend 2D lightsChange how a 2D light interacts with GameObjects and other 2D lights.
Shadows from 2D lightsAdd shadows from 2D lights or create a custom shadow.
Optimize 2D lightsReduce the number of light textures, shadow textures, and shader variants Unity uses to render your 2D lights.
Create a custom 2D light typeCreate a custom 2D light type using the
Light2DProvider
API.
Light 2D component referenceExplore the properties and options you can use to customize the appearance and behavior of 2D lights.
2D Graphics Profiler module referenceExplore the statistics you can use to find how much work Unity does to render 2D lights, shadows, and normal maps.

Additional resources