C# Class Indiefreaks.Xna.Rendering.PostProcess.DepthOfFieldPostProcessor

Adds a Depth of field effect to the current rendered scene @Credits: Bamyazi (Slightly modified) Thanks for this ;-)
Inheritance: BaseRenderTargetPostProcessor
Mostra file Open project: Indiefreaks/igf

Public Methods

Method Description
ApplyPreferences ( ISystemPreferences preferences ) : void

Use to apply user quality and performance preferences to the resources managed by this object.

DepthOfFieldPostProcessor ( ) : System

Creates a BaseRenderTargetPostProcessor instance.

EndFrameRendering ( ) : void

Private Methods

Method Description
ComputeKernel ( int blurRadius, float blurAmount ) : void

Computes the kernel for the Gaussian blur effect.

ComputeOffsets ( float textureWidth, float textureHeight ) : void

Computes the sample offsets for the Gaussian blur effect.

Method Details

ApplyPreferences() public method

Use to apply user quality and performance preferences to the resources managed by this object.
public ApplyPreferences ( ISystemPreferences preferences ) : void
preferences ISystemPreferences
return void

DepthOfFieldPostProcessor() public method

Creates a BaseRenderTargetPostProcessor instance.
public DepthOfFieldPostProcessor ( ) : System
return System

EndFrameRendering() public method

public EndFrameRendering ( ) : void
return void