Version: Unity 6 (6000.0)
Language : English
Custom rendering and post-processing in URP
Adding pre-built effects via Renderer Features in URP

Introduction to Scriptable Render Passes in URP

Scriptable Render Passes are a way to alter how Unity renders a sceneA Scene contains the environments and menus of your game. Think of each unique Scene file as a unique level. In each Scene, you place your environments, obstacles, and decorations, essentially designing and building your game in pieces. More info
See in Glossary
or the objects within a scene. They allow you to fine tune how Unity renders each scene in your project on a scene-by-scene basis.

You inject a Scriptable Render Pass into the render pipelineA series of operations that take the contents of a Scene, and displays them on a screen. Unity lets you choose from pre-built render pipelines, or write your own. More info
See in Glossary
to achieve a custom visual effect. For more information, refer to Adding a Scriptable Render Pass to the frame rendering loop.

A Scriptable Render Pass lets you to do the following:

  • Change the properties of materials in your scene.
  • Change the order that Unity renders GameObjectsThe fundamental object in Unity scenes, which can represent characters, props, scenery, cameras, waypoints, and more. A GameObject’s functionality is defined by the Components attached to it. More info
    See in Glossary
    in.
  • Lets Unity read cameraA component which creates an image of a particular viewpoint in your scene. The output is either drawn to the screen or captured as a texture. More info
    See in Glossary
    buffers and use them in shadersA program that runs on the GPU. More info
    See in Glossary
    .

For example, you can use a Scriptable Render Pass to blur a camera’s view when showing the in-game menu.

Unity injects Scriptable Render Passes at certain points during the URP render loop. These points are called injection points. You can change the injection point Unity inserts your pass at to control how the Scriptable Render Pass affects the appearance of your scene. For more information on injection points, refer to Injection Points.

Additional resources

Custom rendering and post-processing in URP
Adding pre-built effects via Renderer Features in URP