歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
您现在的位置: Linux教程網 >> UnixLinux >  >> Linux編程 >> Linux編程

Unity3D圖像後處理特效——Vortex image effect

The Vortex image effect distorts the rendered image within a circular region. Pixels in the image are displaced around a central circular area by a specified angle; the amount of displacement reduces with distance from the centre, diminishing to zero at the circle's edge. Vortex is similar to another image effect called Twirl, although Twirl distorts the image around a point rather than a circle.

漩渦圖像特效是指在一個圓形區域內扭曲所渲染的圖像。圖像中的像素沿著一個圓形區域進行旋轉偏移,而偏移量隨著距中心的距離而逐漸減少,在圓形區域邊界處降低為0。漩渦圖像特效類似於另一種叫做旋轉扭曲的圖像特效,不同的是旋轉扭曲特效是將圖像沿著一個點而非一個圓形區域來旋轉圖像。

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。

Vortex image effect applied to the scene

應用於場景的漩渦圖像特效

Radius

半徑
 The radius of the circle where distortion occurs, given in normalized screen coordinates (ie, a radius of 0.5 is half the size of the screen).

在給定的歸一化屏幕坐標中,圖像扭曲出現的位置上的橢圓半徑(ie,半徑為 0.5 是屏幕大小的一半)
 
Angle

角度
 The angle by which pixels are displaced around the central circle.

中心點的旋轉角度
 
Center

中心
 The center of the circular region of distortion.

扭曲處的圓形區域中心點
 

 
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.

所有圖像特效如果無法在用戶顯卡上運行時將會自動被關閉。

Copyright © Linux教程網 All Rights Reserved