Click or drag to resize
Ab4d.SharpEngine logo

GaussianBlurPostProcess Class

GaussianBlurPostProcess is a post-process that blurs the scene by using a gaussian filter. The filter is applied in two passes - one vertical pass and one horizontal pass.
Inheritance Hierarchy

Namespace: Ab4d.SharpEngine.PostProcessing
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 4.0.9584+ba1aaa26d4181dd3fa8ed7b6398391d1affa36c8
Syntax
C#
public class GaussianBlurPostProcess : SeparableKernelPostProcess

The GaussianBlurPostProcess type exposes the following members.

Constructors
 NameDescription
Public methodGaussianBlurPostProcess Initializes a new instance of the GaussianBlurPostProcess class.
Top
Properties
 NameDescription
Public propertyBlurRangeScale Gets or sets a float that defines how much the range from where this blur read pixel colors is increased. Default value is 1. Bigger values increase the blur amount but can show artifacts because the values are read only from 4 directions (and not from all pixels around the center position).
Public propertyBlurStandardDeviation Gets or sets a standard deviation value that is used to calculate the gaussian values. Smaller values give more weight to the pixels around the center. Bigger values flatten the gaussian curve and give more weight to the pixels away from the center. Default value is 2.
Top
Methods
 NameDescription
Protected methodFillOffsetsAndWeights FillOffsetsAndWeights fulls the specified offsets and weights arrays with values that are used in the shader to render this post process. Offsets define how far from the texture coordinate we sample pixel. Weights define how much weight this pixel has in the final color.
(Overrides SeparableKernelPostProcessFillOffsetsAndWeights(RenderingContext, Boolean, Int32, Int32, Single, Single))
Top
See Also