First use Shader Graph to connect a shader that uses model normals to add snow, and assign it to a material.
1.1 First get the vertex normals in the model world coordinates, process them briefly, and give them transparency.
Add a Custom Pass to the scene and remove unnecessary layers.
1. In the Hierarchy interface, right-click to create Volume -> Custom Pass
2. Add Draw Renderers Custom Pass to Custom Pass Volume
3. Attach material, adjust rendering to All Opaque, Forward, depth test can test Equal, Greater, Always ,.
4.Always effect:
解决报错(Your HDRP setting do not support Forwardonly, some objects might not renderer)。
1. To solve this error, you need to adjust the lighting rendering mode of the currently used HDRP Asset to ForwardOnly
2. The currently used HDRP Asset can be viewed in Edit -> Project setting -> Quality -> Rendering -> Render Pipeline Asset.
Optimize Shader Graph.
1. You can view the rendering queue of the current Custom Pass in the Frame Debugger.
The material mounted by the Custom Pass only adds a layer to the original material. If we need the transition of the snow, we need to remove the transparency obtained by using the normal line. The main thing is to operate on normal lines.
Effect: