Vignette 渐晕 后期处理系列16

本文详细介绍了Unity后处理堆栈中的Vignette渐晕效果,包括Classic经典模式和Masked蒙版模式的使用,以及如何通过自定义纹理蒙版实现艺术性的图像边缘暗化效果。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Vignette 渐晕

本文档主要是对Unity官方手册的个人理解与总结(其实以翻译记录为主:>)
仅作为个人学习使用,不得作为商业用途,欢迎转载,并请注明出处。
文章中涉及到的操作都是基于Unity2018.4版本
参考链接:https://github.com/Unity-Technologies/PostProcessing/wiki/Vignette

In Photography, vignetting is the term used for the darkening and/or desaturating towards the edges of an image compared to the center. This is usually caused by thick or stacked filters, secondary lenses, and improper lens hoods. It is also often used for artistic effect, such as to draw focus to the center of an image.
在摄影技术中,渐晕是一个术语,用来表示与图像中心相比,图像边缘处的色调变暗和/或饱和度降低。这通常是由于厚或堆叠过滤器,次要镜头,和不适当的镜头罩。它也经常用于艺术效果,如把焦点吸引到图像的中心。

在这里插入图片描述
The Vignette effect in the post-processing stack comes in 2 modes:
后处理堆栈中的渐晕效果有两种模式:

  • Classic 经典
  • Masked 蒙版

Requirements

  • Shader Model 3

See the Graphics Hardware Capabilities and Emulation page for further details and a list of compliant hardware.

Classic

Classic mode offers parametric controls for the position, shape and intensity of the Vignette. This is the most common way to use the effect.
经典模式提供渐晕参数控制:位置,形状和强度。这是最常用的使用效果的方法。
在这里插入图片描述

PropertyFunction
ColorVignette color.
CenterSets the vignette center point (screen center is [0.5,0.5]).
中心渐晕中心点的位置,默认为屏幕中心
IntensityAmount of vignetting on screen.
强度渐晕的强度
SmoothnessSmoothness of the vignette borders.
平滑度渐晕边框的平滑度。
RoundnessLower values will make a more squared vignette.
圆度较低的值将使渐晕的轮廓变得更加平方。
RoundedShould the vignette be perfectly round or be dependent on the current aspect ratio?
圆形渐晕应该是完全圆形的还是依赖于当前的宽高比?,默认依赖宽高比

Masked

Masked mode multiplies a custom texture mask over the screen to create a Vignette effect. This mode can be used to achieve less common or irregular vignetting effects.
蒙版模式是在屏幕上覆盖(相乘)一个自定义纹理蒙版,以创建一个渐晕效果。此模式可用于实现不太常见或不规则的渐晕效果。

在这里插入图片描述

PropertyFunction
ColorVignette color. Use the alpha channel for transparency.
颜色渐晕颜色。alpha通道代表透明度
MaskA black and white mask to use as a vignette.
蒙版一种用作渐晕的黑白蒙版
opacityMask opacity.
不透明蒙版的不透明程度
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值