看了BeaverJoe的PostPricessing视频,简单做个笔记。视频地址,觉得笔记不够详细的可以去看视频,下方置顶评论有详细的时间戳。视频后边还有代码控制组件参数的方法。

目录

  • 安装
  • 使用
  • 摄像机相关
  • Dithering(抖色)
  • Anti-Aliasing(抗锯齿)
  • 组件
  • Ambient Occlusion(环境光遮蔽)
  • Cheromatic Aberration(色彩偏移)
  • Vignette(暗角)
  • Film Grain(胶片颗粒)
  • Depth of Field(景深)
  • Mtion Blur(运动模糊)
  • Lens Distortion(镜头扭曲)
  • Panini Projection(帕尼尼投影)
  • Tonemapper(色调映射)
  • White Balance(白平衡)
  • Color Adjustment(色彩调整)
  • Color Curves
  • Split Toning(色调分离)
  • Shadows Midtones Highlights(调色的,阴影、中间调、高光)
  • Lift Gamma Gain(同上)
  • Color Lookup

安装

普通项目(没有使用URP或者HDRP的项目):PackManager下载Post Processing包。

URP项目,自带Post Processing包,只需在Hierarchy面板右键选择Volume添加相关脚本即可。

使用

  • 普通项目
  1. 在Project面板创建Profile资源;
  2. Hierarchy面板新建空物体挂载Post-process Volum组件(组件勾选IsGlobal),为该物体创建Layer;
  3. 在摄像机添加Post Processing Layer组件,并在组件中选择刚才创建的Layer层。
  • URP项目
  1. 在Hieratchy面板创建Global Volume组件,在组件中按下New创建配置文件;
  2. 摄像机勾选Use Post Processing。
  3. 在URP资源中勾选HDP,更多效果。

摄像机相关

Dithering(抖色)

postgre with recursive 限制次数_Processing

使颜色过渡更平滑。

postgre with recursive 限制次数_Processing_02

Anti-Aliasing(抗锯齿)

postgre with recursive 限制次数_抗锯齿_03

消除锯齿

postgre with recursive 限制次数_抗锯齿_04

组件

Ambient Occlusion(环境光遮蔽)

可以改变物体与物体之间的光照影响。

只在普通项目中存在该选项,在URP项目中该项已被删除。

  • Bloom(辉光效果)

明亮区域发散光芒。

Lens Dirt选项下选择一张Texture可以添加柔光的纹理(类似脏玻璃的效果)

postgre with recursive 限制次数_Pan_05

Cheromatic Aberration(色彩偏移)

postgre with recursive 限制次数_Processing_06

Vignette(暗角)

Film Grain(胶片颗粒)

Depth of Field(景深)

Mtion Blur(运动模糊)

Lens Distortion(镜头扭曲)

Panini Projection(帕尼尼投影)

让镜头中心突出而屏幕四周的物体不变型

postgre with recursive 限制次数_抗锯齿_07

Tonemapper(色调映射)

类似滤镜,用于调整画面风格。

White Balance(白平衡)

用于调整冷暖色调。

Color Adjustment(色彩调整)

postgre with recursive 限制次数_Processing_08

Color Curves

替换某种颜色的饱和度、颜色等。

postgre with recursive 限制次数_Processing_09

postgre with recursive 限制次数_Pan_10

Split Toning(色调分离)

指定俩种颜色显示在屏幕上,通过Balance控制俩种切换。

postgre with recursive 限制次数_抗锯齿_11

postgre with recursive 限制次数_抗锯齿_12

Shadows Midtones Highlights(调色的,阴影、中间调、高光)

postgre with recursive 限制次数_Pan_13

Lift Gamma Gain(同上)

postgre with recursive 限制次数_抗锯齿_14

Color Lookup

postgre with recursive 限制次数_Pan_15

将场景截图在PS中做颜色调整,完成后导出一张16Bit的图片保存到Unity,这张图片就是一个场景配色预设,可以通过切换Lookup Texture的16Bit图片切换场景风格。