2D lighting in URP
Techniques and resources for creating 2D lights and applying 2D lighting effects
阅读时间1 分钟最后更新于 23 天前
Techniques and resources for creating 2D lights and applying 2D lighting effects.
Topic | Description |
|---|---|
| Introduction to 2D lighting | Understand the tools and runtime components you use to create a lit 2D scene. |
| Create a 2D light | Create a 2D light that illuminates compatible 2D GameObjects in your scene. |
| Make a GameObject compatible with 2D lights | Make a shader or a visual effect graph compatible with 2D lights. |
| Add a normal map or a mask map to a sprite | Add surface detail such as bumps, grooves, and scratches to a 2D sprite. |
| Blend 2D lights | Change how a 2D light interacts with GameObjects and other 2D lights. |
| Shadows from 2D lights | Add shadows from 2D lights or create a custom shadow. |
| Optimize 2D lights | Reduce the number of light textures, shadow textures, and shader variants Unity uses to render your 2D lights. |
| Create a custom 2D light type | Create a custom 2D light type using the |
| Create a custom material for a 2D light | Change how a 2D light looks with a Light2D shader graph. |
| Light 2D component reference | Explore the properties and options you can use to customize the appearance and behavior of 2D lights. |
| 2D Graphics Profiler module reference | Explore the statistics you can use to find how much work Unity does to render 2D lights, shadows, and normal maps. |