Precautions for upgrading URP shader to urp

https://www.bilibili.com/video/BV1Xy4y1e7hj?spm_id_from=333.337.search-card.all.click&vd_source=374fc01cbe5d85ee2184f39b49cf56b2 This link is the explanation of station b for the following content. I made the following notes after studying.
https://docs.unity3d.com/Packages/[email protected]/manual/InstallURPIntoAProject.html This path is the official document of urp.
Note:
The lightweight rendering pipeline shader can be used under upr, but it is not compatible.
insert image description here
Ordinary shaders are developed based on CG.
shader: RenderPipline="UniversalPipline" in the tag
is mainly used in URP HLSLPROGRAM, developed by Microsoft, based on D3DCompiler
in order to enable support for urp rendering pipeline optimization. To make Shader and SRP Batcher compatible, all properties of the material need to be defined in a CBUFFER block named UnityPerMaterial
SRP: divided into URP HDRP and custom rendering pipeline
insert image description here
https://teodutra.com/unity/shaders/urp/graphics/ 2020/05/18/From-Built-in-to-URP/ This link is the method replacement guide for shader upgrade.
Fixed is not supported in urp and can be replaced by half (half precision).
insert image description here
CBuffer wraps all properties
insert image description here
At this point the shader is urp compatible.

Guess you like

Origin blog.csdn.net/Allure_Lo/article/details/126418235