Unity设置HDRP渲染

一.环境搭建 HDR配置

  • 1.Window->Package Manager->安装
    1.ShaderGraph,
    2.Render Pipline Core Library
    3.HD RenderPipeline
    4.Lightweight Rendering Pipeline
    5.Post Processing
  • 2.创建HDR管线
    1.Project->创建Creat->Rendering-> HDR Asset
    2.Editor Project Setting->Graphies Setting
    3.把资源拖入到Volume Setting中

二.场景搭建

Unity设置HDRP渲染

  • 3.节点Volume Setting
    1.新建GameObject节点命名Volume Setting 添加脚本 Volume 勾选Is Gloable启用
    Unity设置HDRP渲染
    2.点击new新建Volume Setting Profile 配置
    3.天空盒创建,雾设置
    Unity设置HDRP渲染
    3.1点击Volume Setting Profile 配置, 添加组件HDRI Sky 新建天空盒,把贴图TextureShape设置Cube模式,拖入其中
    3.2添加Visual Environment 设置Sky Type->HDRISky FogType->
    3.3添加HDShadow Setting
    3.4添加Exponential Fog
    3.5烘焙天空盒 添加Backing Sky , Backing Sky选择HDRISky
    Unity设置HDRP渲染

  • 4节点Post Processing Setting
    1.新建GameObject节点命名Post Processing Setting添加脚本 Post Process Volume 勾选Is Gloable启用
    Unity设置HDRP渲染
    2.设置Post Processing Setting节点Layer为Post Processing
    3.点击new创建新配置Post Processing Setting Profile配置
    4.Main Camera添加组件Post Process Layer,设置Layer为Post Processing,调整Mode
    Unity设置HDRP渲染

  • 5.Post Processing Volume添加效果
    1.添加组件Vignette
    2.添加组件Bloom
    3.添加组件Color Grading
    4.添加组件Depth Of Field

    视频:Unity设置HDRP渲染
    后续有需要场景中添加反射探头