一、加载高清渲染管线
Window>>Packages Manager>>Advanced>>Show preview packages>>Render-Pipelines.High-Definition>>install
资源面板右键>>Create>>Rendering>>High Definition Render Pipelines Asset生成文件New HDRenderPipelineAsset
将文件放入
Edit>>Project Settings>>Graphics>>Scriptable Render Pipeline Settings
如果出现错误提示,修改色彩空间为线性
Edit>>Project Settings >>Player>>Other Settings>>Rendering>>Color Space>>(gama/Linear)
HDRP高清渲染管线加载成功
二、烘培模式
Window>>Rendering>>Lighting Setting>>Scene
三、发光材质
发光材质Inspector>>Emissive Inputs>>Emissive Color
发光材质GI Inspector>>Emissive Inputs>>Emission
四、灯光贴图设置
Window>>Rendering>>Lighting Setting>>Scene>>Lightmapping Setting>>Lightmap Parameters>>Create New
五、屏幕空间反射
Hierarchy面板中右键>>Rendering>>Scene Settings>>Inspector>>Volume>>Add component overrides >>Screen Space reflection
选中New HDRenderPipelineAsset>>Inspector>>Render Pipeline Supported Features>>SSR(勾选)
选中New HDRenderPipelineAsset>>Inspector>>Lighting Settings>>SSR(勾选)
六、添加后期效果
在相机上添加脚本
Hierarchy>>Main Camera>>Inspector>>Add Component>>Post Process Layer>>Anti-aliasing>>Mode>>Temporal Anti-aliasing(TAA)
>>Volume blending>>Layer>>PostProcessing
>>Inspector>>Layer>>PostProcessing
>>Add Component>>Post Process Volume>>Is Global
>>Profile>>New(生成Area Light Profile文件)
添加各种效果(AO、泛光、色彩平衡、暗角、颗粒、体积雾等):选中生成的文件Area Light Profile>>Inspector>>Overrides>>Add effect
超形设计www.cshape.cn