BuildIn和URP在传参和语义上区别
- ------------------------------------------------------------------------------------------------------------------
- BuildIn管线CG和URP管线HLSL
- ------------------------------------------------------------------------------------------------------------------
- Unity内置源码:
- ------------------------------------------------------------------------------------------------------------------
- ------------------------------------------------------------------------------------------------------------------
- BuildIn管线下最简光照shader框架
- URP管线下最简光照shader框架
- URP管线下最简GUI 不透明Opaque shader框架
- URP管线下最简GUI 透明Transparent shader框架
- HDRP管线下最简Unlit shader框架
------------------------------------------------------------------------------------------------------------------
BuildIn管线CG和URP管线HLSL
- Tag和CGPROGRAM不赘述
- Tag和HLSLPROGRAM不赘述
CG光照宏定义
...
#pragma multi_compile_fwdbase
...
HLSL光照宏定义
...
//支持多个平行光,只支持一个平行光的阴影,主光源阴影,屏幕空间阴影,级联阴影