This version of the Edge Detect image effect creates outlines around edges by taking the scene geometry into account. Edges are not determined by colour differences but by the surface normals and distance from camera of neighbouring pixels (the surface normal is an "arrow" that indicates the direction the surface is facing at a given pixel position). Generally, where two adjacent pixels have significantly different normals and/or distances from the camera, there is an edge in the scene.
該邊界提取的圖像特效版本是通過場景中物體的幾何信息來將其輪廓線抽取出來。邊緣不僅由顏色的差異來決定,同時也由相鄰像素所對應的法線朝向和離相機的距離來決定。一般來說,當兩個相鄰像素擁有明顯不同的法線朝向或距相機距離時,這就是場景中的一個邊緣。
As with the other image 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。
沒有邊緣檢測的場景
該場景中的邊緣顯示
This effect uses the ImageEffectOpaque attribute which enables image effects to be executed before the transparent render passes. By default, image effects are executed after both opaque and transparent passes have been fully rendered.
該特效使用了ImageEffectOpaque屬性,該屬性使圖像特效在渲染透明物體通道之前執行。默認情況下,圖像特效都是在場景中實體和透明物體全部渲染完成後進行的。
Properties 屬性
Mode 模式 |
Chose between Thin and Thick. Thick will take more samples into consideration to construct outlines. 在粗細之間進行選擇。粗表示使用更多的採樣點來生成輪廓線 |
Edge Sensitivity 邊緣敏感度 |
|
Depth 深度 |
The minimum difference between the distances of adjacent pixels that will indicate an edge. 相鄰像素的深度最小差異。大於該差異,則認爲存在邊。 |
Normals 法線 |
The minimum difference between the normals of adjacent pixels that will indicate an edge. 相鄰像素的最小法線朝向差異。大於該差異,則認爲存在邊。 |
Background options 背景選項 |
|
Edges only 僅邊緣 |
Blend the background with a fixed color. 將一個固定顏色與背景進行混合 |
Background 背景 |
The color used when Edges only is > 0. 當Edges Only數值大於0時所採用的顏色 |
Hardware support 硬件支持
This effect requires a graphics card with pixel shaders (2.0) or OpenGL ES 2.0. Additionally, depth texture support is required. PC: NVIDIA cards since 2004 (GeForce 6), AMD cards since 2004 (Radeon 9500), Intel cards since 2006 (GMA X3000); Mobile: OpenGL ES 2.0 with depth texture support; Consoles: Xbox 360, PS3.
這個特效需要顯卡擁有像素着色器(2.0)或者OpenGL ES 2.0。臺式機:2004年以後的NVIDIA顯卡(GeForce 6),2004年以後的AMD顯卡(Radeon 9500),2006年以後的Intel卡(GMA X3000);移動設備:OpenGL ES 2.0並支持深度紋理;控制檯: Xbox 360、 PS3。
All image effects automatically disable themselves when they can not run on end-users graphics card.
所有圖像特效如果無法在用戶顯卡上運行時將會自動被關閉。