C# Class PSSMDemo.GaussianBlur

ガウシアン ブラー。
Inheritance: IDisposable
Afficher le fichier Open project: willcraftia/TestXna Class Usage Examples

Méthodes publiques

Méthode Description
Dispose ( ) : void
Filter ( Microsoft.Xna.Framework.Graphics.Texture2D source, RenderTarget2D destination ) : void

ブラーを適用します。 内部では、まず水平方向を処理し、これを内部レンダ ターゲットへ描画します。 続いて、内部レンダ ターゲットに対して垂直方向を処理し、これを指定のレンダ ターゲットへ描画します。

GaussianBlur ( GraphicsDevice graphicsDevice, int width, int height, SurfaceFormat format, Effect effect ) : System

Private Methods

Méthode Description
Dispose ( bool disposing ) : void
Filter ( Microsoft.Xna.Framework.Graphics.Texture2D source, RenderTarget2D destination, GaussianBlurEffectPass direction ) : void

Method Details

Dispose() public méthode

public Dispose ( ) : void
Résultat void

Filter() public méthode

ブラーを適用します。 内部では、まず水平方向を処理し、これを内部レンダ ターゲットへ描画します。 続いて、内部レンダ ターゲットに対して垂直方向を処理し、これを指定のレンダ ターゲットへ描画します。
public Filter ( Microsoft.Xna.Framework.Graphics.Texture2D source, RenderTarget2D destination ) : void
source Microsoft.Xna.Framework.Graphics.Texture2D ブラー対象テクスチャ。
destination Microsoft.Xna.Framework.Graphics.RenderTarget2D 結果の描画先となるレンダ ターゲット。
Résultat void

GaussianBlur() public méthode

public GaussianBlur ( GraphicsDevice graphicsDevice, int width, int height, SurfaceFormat format, Effect effect ) : System
graphicsDevice GraphicsDevice
width int
height int
format SurfaceFormat
effect Microsoft.Xna.Framework.Graphics.Effect
Résultat System