Custom translucent shading effects under the Unity Shader Graph URP rendering pipeline
Under the rendering pipeline of URP
- Find "Graphic" in the project settings
- Locate the URP Asset file
- Index to the Renderer List file - "ForwardRenderer"
- Find "Add Renderer Feature" in this "ForwardRenderer" file
- Add a render object, similar to the following: Render Object (Experimental)
-
As shown in the figure, set the "Event" toAfter Rendering Skybox, and then "Layer Mask" selects a custom layer. This name can be customized at will. I set "Transform" here. Add a transparent material that needs to be customized, and check "Depth" and "Write Depth".