标题: [Unity 组件参考手册]组件:图像特效脚本 [打印本页] 作者: . 时间: 2013-1-31 21:05 标题: [Unity 组件参考手册]组件:图像特效脚本 This group handles all Render Texture-based fullscreen image postprocessing effects. They are only available with Unity Pro. They add a lot to the look and feel of your game without spending much time on artwork.该章节主要讲解所有的基于渲染纹理的全屏图像后期处理特效。这些特效只有在Unity Pro版本才能使用。它们可以给你的游戏带来大量的视觉感受,从而让你不再艺术创作中花费大量的时间。All image effects make use of Unity's OnRenderImage function which any MonoBehavior attached to a camera can overwrite to accomplish a wide range of custom effects.Unity中所有的图像特效都编写在OnRenderImage 函数中,这样,任何附加在照相机上的脚本都可以通过重写它在完成自定义的特效效果。Image effects can be ***cuted directly after the opaque pass or after opaque and transparent passes (default). The former behavior can very easily be acquired by adding the attribute ImageEffectOpaque to the OnRenderImage function of the effect in question. For an example of an effect doing this, have a look at the Edge Detection effect.图像特效可以在不透明渲染通道或透明与不透明渲染通道(默认情况)后直接执行。前者处理可以非常方便地通过将ImageEffectOpaque 属性加入到OnRenderImage函数中来达到效果。对于这种做法的例子,请看边缘检测特效。 Antialiasing (PostEffect) 抗锯齿特效(后期特效)
Bloom and Lens Flares 泛光和镜头光晕特效
Color Correction Curves 颜色校正曲线特效
Contrast Enhance 对比度增强特效
Crease 折皱特效(轮廓线)
Depth of Field 3.4 景深特效
Tonemapping 色调映射特效
Edge Detect Effect Normals 法线的边缘检测特效
Fisheye image effect 鱼眼图像特效
Global Fog 全局雾化特效
Sun Shafts 光线特效
Tilt Shift 移轴特效
Vignetting 渐晕特效
Blur image effect 模糊图像特效
Color Correction image effect 颜色校正图像特效
Contrast Stretch image effect 对比度拉伸图像特效
Edge Detection image effect 边缘检测图像特效
Glow image effect 发光图像特效
Grayscale image effect 灰度图像效果
Motion Blur image effect 运动模糊图像特效
Noise image effect 噪波图像特效
Sepia Tone image effect 棕褐色调的图像特效
Screen Space Ambient Occlusion (SSAO) image effect 屏幕空间的环境遮挡图像特效
Twirl image effect 旋转图像特效
Vortex image effect 涡流图像特效The scene used in above pages looks like this without any image effects applied:在没有使用上述图像特效的场景渲染效果如下:
Scene with no image postprocessing effects. 没有后期处理特效的场景。Multiple image effects can be "stacked" on the same camera. Just add them and it will work.可以"叠加"多个图像效果在相同的相机上:
Blur and Noise applied to the same camera. Yay for noisy blur!
在同样的照相机上应用模糊以及噪声特效。【来源:互联网】
更多精彩教程,尽在web3D纳金网http://www.narkii.com/college/