> ## Documentation Index
> Fetch the complete documentation index at: https://docs.pixelate.tomblack.ca/llms.txt
> Use this file to discover all available pages before exploring further.

# Use 2D lights in URP

> Capture Pixelate sprites with normal maps and light them with URP 2D lights.

Use this guide when your Unity project uses Universal Render Pipeline.

## Set up URP

<Steps>
  <Step title="Install URP">
    In **Window > Package Manager**, install Universal Render Pipeline if it is not already installed.
  </Step>

  <Step title="Assign a URP asset">
    In **Project Settings > Graphics**, assign a URP asset.
  </Step>

  <Step title="Use a 2D Renderer">
    For Sprite-Lit materials, make sure the URP asset uses a 2D Renderer.
  </Step>

  <Step title="Set the Pixelate profile">
    In the capture manager's local profile settings, or in an assigned `PixelateProfile`, open **Normal Map** and set **Material Pipeline** to **URP**.
  </Step>

  <Step title="Set Light Render Textures">
    Open the 2D Renderer asset, expand **Light Render Textures**, and set **Render Scale** to `1`.
  </Step>
</Steps>

## Capture

Follow [Capture your first sprite](/quickstart), [Image capture](/image-capture), or [Animation capture](/animation). When **Normal Map** is enabled, Pixelate creates a matching `_N.png` for each static capture or animation clip, then assigns it as the diffuse sprite sheet's `_NormalMap` secondary texture.

## Use a lit sprite material

<Steps>
  <Step title="Create a material">
    Create a new material.
  </Step>

  <Step title="Choose the shader">
    Set the shader to `Universal Render Pipeline/2D/Sprite-Lit-Default`.
  </Step>

  <Step title="Assign the sprite">
    Use the generated diffuse sprite sheet or its sliced sprites. The generated normal map is already linked as a secondary texture.
  </Step>

  <Step title="Assign the material">
    Set the material on your Sprite Renderer.
  </Step>

  <Step title="Add a 2D light">
    Add a 2D light, then turn on **Normal Maps** in the Light 2D component so the sprite reacts to the normal map.
  </Step>
</Steps>

<Tip>
  Open `Assets/Pixelate/DEMO/Scenes/Visualize.unity` to see the lighting setup in context. The render assets in `Assets/Pixelate/DEMO/URP` are included as a pre-configured starting point.
</Tip>

<Warning>
  A URP project using a 3D renderer will not light Sprite-Lit sprites the same way as a 2D Renderer. Use a 2D Renderer for normal-map sprite lighting.
</Warning>
