C# Class Meshellator.Viewer.Framework.Rendering.Decorators.BlurComponent

// With thanks to Kyle Hayward's shadow mapping demo at http://graphicsrunner.blogspot.com/
ファイルを表示 Open project: tgjones/meshellator Class Usage Examples

Public Properties

Property Type Description
Dims int
Format Format
InputTexture SharpDX.Direct3D9.Texture
OutputTexture SharpDX.Direct3D9.Texture

Public Methods

Method Description
BlurComponent ( SharpDX.Direct3D9.Device graphics, int size ) : Meshellator.Viewer.Framework.Rendering.Effects
Draw ( ) : void

Private Methods

Method Description
ComputeGaussian ( float n ) : float

Evaluates a single point on the gaussian falloff curve. Used for setting up the blur filter weightings.

DrawFullscreenQuad ( SharpDX.Direct3D9.Texture texture ) : void
DrawFullscreenQuad ( SharpDX.Direct3D9.Texture texture, SharpDX.Direct3D9.Texture renderTarget ) : void
SetBlurEffectParameters ( float dx, float dy, Vector4D &offsets, float &weights ) : void

Computes sample weightings and texture coordinate offsets for one pass of a separable gaussian blur filter.

Method Details

BlurComponent() public method

public BlurComponent ( SharpDX.Direct3D9.Device graphics, int size ) : Meshellator.Viewer.Framework.Rendering.Effects
graphics SharpDX.Direct3D9.Device
size int
return Meshellator.Viewer.Framework.Rendering.Effects

Draw() public method

public Draw ( ) : void
return void

Property Details

Dims public_oe property

public int Dims
return int

Format public_oe property

public Format Format
return Format

InputTexture public_oe property

public Texture,SharpDX.Direct3D9 InputTexture
return SharpDX.Direct3D9.Texture

OutputTexture public_oe property

public Texture,SharpDX.Direct3D9 OutputTexture
return SharpDX.Direct3D9.Texture