Unity3D图像后处理特效——Edge Detection image effect

来源:互联网 发布:网络银行的风险 编辑:程序博客网 时间:2024/05/16 12:13

Edge Detect image effect adds black edges to the image wherever color differences exceed some threshold.

边缘检测图像特效在图像中某些颜色差异较大的地方加入黑边。

 

If more accurate geometry-based edge detection is required, the Standard Assets also provide a more sophisticatednormal-based edge detection effect.

如果要求更加准确的基于几何信息的边缘检测,Standard Assets同样提供了一个更加复杂的基于法线的边缘检测特效。

 

As with the otherimage effects, this effect is only available in Unity Pro and you must have the Pro Standard Assets installed before it becomes available.

和其他图像特效一样,该特效只能在Unity Pro上进行使用,并且在使用之前必须安装Pro Standard Assets

 

Edge Detect image effect applied to the scene

场景中应用了边缘检测图像特效。

 

Threshold

 

阈值

Edges will be displayed wherever the color difference between neighboring pixels exceeds this value. Increasing the value will make edges less sensitive to texture or lighting changes.

当该像素与其邻域的颜色差异大于该值时将显示边缘。增加该值将会使边缘对纹理或亮度变化的敏感度降低。

 

Hardware support          硬件支持

This effect requires a graphics card with pixel shaders (2.0) or OpenGL ES 2.0. PC: NVIDIA cards since 2003 (GeForce FX), AMD cards since 2004 (Radeon 9500), Intel cards since 2005 (GMA 900); Mobile: OpenGL ES 2.0; Consoles: Xbox 360, PS3.

这个特效需要显卡拥有像素着色器(2.0)或者OpenGL ES 2.0。台式机:2003年以后的NVIDIA显卡(GeForce FX),2004年以后的AMD显卡(Radeon 9500),2005年以后的Intel卡(GMA 900);移动设备:OpenGL ES 2.0;控制台: Xbox 360 PS3

 

All image effects automatically disable themselves when they can not run on end-users graphics card.

所有图像特效如果无法在用户显卡上运行时将会自动被关闭。