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 20 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.
Optimize 2D lights by batchingOrganize your 2D lights with the Light Batching Debugger window so Unity uses fewer textures to render light and shadows.
Light 2D component referenceExplore the properties and options you can use to customize the appearance and behavior of 2D lights.

Additional resources