Pixelate ships a dedicated Universal Render Pipeline package —Documentation Index
Fetch the complete documentation index at: https://docs.tomblack.ca/llms.txt
Use this file to discover all available pages before exploring further.
PixelateSRP.unitypackage — that handles URP-specific capture behavior and material setup. This guide walks through everything you need to get lit pixel-art sprites working in a URP project.
Install the SRP package
Import
PixelateSRP.unitypackage into your Unity project (Assets → Import Package → Custom Package). Do not use Pixelate.unitypackage or PixelateNew.unitypackage in a URP project — those target the Built-in Render Pipeline.Verify URP is set up
Go to Edit → Project Settings → Graphics and confirm a URP asset is assigned to the Scriptable Render Pipeline Settings field.If URP is not yet installed, open the Package Manager (Window → Package Manager), switch to Unity Registry, and install Universal RP.
Enable the 2D Renderer
Open your URP Renderer asset. In the Renderer List, make sure a 2D Renderer is present (not only Forward or Deferred renderers). The 2D Renderer is required for 2D lighting and normal maps.
If you created a new 2D URP project, the 2D Renderer is already set up by default.
Capture your sprite sheet
Open the Capturing scene from the
Pixelate/ folder. Set up the PixelateCaptureManager as described in the Quick Start guide — choose your capture type, assign your target and clips, and set your cell size and FPS.During capture, Pixelate temporarily adjusts QualitySettings.renderPipeline and GraphicsSettings.defaultRenderPipeline per-frame to ensure accurate rendering, then restores them when done.Create a URP material
After capture, create a material for your sprite:
- Right-click in the Project window → Create → Material
- Set the shader to Universal Render Pipeline/2D/Sprite-Lit-Default
- Set Primary Texture to your diffuse sprite sheet (e.g.,
Character_Idle.png) - Set Normal Map Texture to your normal map (e.g.,
Character_Idle_NormalMap.png)
Assign the material to your Sprite Renderer
Select your character’s Sprite Renderer component and set the Material field to the URP material you just created.
Add 2D lighting to your scene
For the normal map to have any visible effect, your scene needs a 2D light:
- In the Hierarchy, right-click → Light → Global Light 2D (or Spot Light 2D, Point Light 2D)
- A Global Light 2D acts like a directional ambient light and is the easiest way to verify the normal map is working
- Adjust the light’s Intensity and Color to taste
Character flipping
When your game logic flips a character to face left, rotate the GameObject 180° on the Y axis instead of settingTransform.Scale.x = -1.
Negative X scale inverts the normal map’s lighting direction, causing shadows to appear on the wrong side of the character.
Troubleshooting URP lighting
| Symptom | Likely cause | Fix |
|---|---|---|
| Sprite appears flat/unlit | No 2D light in scene | Add a Global Light 2D |
| Sprite appears fully black | Material on wrong renderer | Check URP asset uses 2D Renderer |
| Normal map has no effect | Wrong shader | Use Sprite-Lit-Default, not Sprite-Unlit-Default |
| Lighting inverted on flip | Scale set to -1 | Rotate Y 180° instead |
| Colors look wrong after capture | URP pipeline not restored | Re-capture; check no errors in Console |