Premium
Introduction to LWRP
Tutorial
Intermediate
10 Mins
Overview
Overview
Summary
The goal of the Lightweight Rendering Pipeline (LWRP) is to provide optimized performance for developers targeting a broad range of platforms, VR, and games with limited realtime lighting needs. It does this by making some tradeoffs with regard to lighting and shading. In this tutorial, you will learn about LWRP and its uses.
Topics we'll cover
Language
English
Recommended Unity Versions
2018.1 and Above
Tutorial
Introduction to LWRP
1.
Introduction to LWRP
The goal of the Lightweight Rendering Pipeline (LWRP) is to provide optimized performance for developers targeting a broad range of platforms, VR, and games with limited realtime lighting needs. It does this by making some tradeoffs with regard to lighting and shading.

The LWRP performs single-pass forward rendering with one real-time shadow light and light culling per-object. By comparison, the legacy pipeline of forwarding rendering performs an additional pass per pixel light within range. This means the LWRP will result in fewer draw calls. It’s also supported by the Shader Graph tool, which provides additional benefits for shader authoring workflow.

2.
Creating a new project with LWRP
To start a new project with LWRP enabled:
  • Open the Unity Editor and click the New Project button.
  • In the new Template dropdown menu, select Lightweight RP (Preview). (Figure 03)
  • Click the Create Project button.
Once that’s done, your new Unity project with the LWRP will be ready to go.

3.
Upgrading an existing project to use LWRP
To upgrade an existing project, first download the LWRP using the Package Manager.
  • Go to Window dropdown and select Package Manager to open the Packages Window. (Figure 04)
  • Click All.
  • Select Render-pipelines.lightweight.
  • Click Install.
After the package has been installed from the Package Manager, you have to add the LWRP Asset to the Scriptable Render Pipeline Graphics settings field.
  • Go to Edit dropdown and select Project Settings > Player.
Set Color Space to Linear in Player Settings. (Figure 05)
  • Create a pipeline asset by selecting the Asset dropdown and Create > Rendering > Lightweight Pipeline Asset.
  • Go to the Edit dropdown and select Project Settings > Graphics.
In the Graphics Inspector, drag and drop LightweightAsset into the Scriptable Render Pipeline Settings field. (Figure 06)
Now your existing project will be able to use the Lightweight Render Pipeline.

4.
Conclusion
LWRP establishes standardization by bringing in restrictions and disabling features that wouldn’t be supported on lower-end devices. This allows developers to worry less about how to optimize a project and to focus more on developing projects for the wider audience.