Installation and settings of Shader URP in Unity


Preface

In this article, we will introduce the installation and settings of URP


1. URP installation

1. Window -> Project Manager -> Search Render

  • Select Core Render Pipeline Library installation
  • Select Universal Render Pipeline installation
    Insert image description here

2. URP settings

1. Create a URP configuration file

  • Create -> Rendering -> URP Assets(with Universal Render)
    Insert image description here

2. Modification of the rendering pipeline (when empty, the BuildIn Render Pipeline is used)

  • We select the URP profile we just created
    Insert image description here

3. At this time we create a new object. The shader used defaults to the URP default Shader.

The built-in rendering pipeline (BuildIn RP) and the universal rendering pipeline (Universal RP) are incompatible in Shaders affected by lights.

Insert image description here


3. Install Shader Graph to facilitate debugging later.

1. Window -> Project Manager -> Search Shader Graph

Insert image description here

2. We try to create a URP Unlit ShaderGraph

Insert image description here

3. This is the basic template of Shader Graph

Insert image description here

We use Shader Graph just to facilitate debugging Shader effects. In the end, our Shader must be written in the form of code.

Guess you like

Origin blog.csdn.net/qq_51603875/article/details/134975160