Class BokehBlur
This class represents a blur to apply to a texture to create a bokeh effect. It's not supposed to be used as-is, rather you should use subclasses like GaussianBokeh, McIntoshBokeh or TripleRhombiBokeh... which do actually implement a blur technique leading to a particular bokeh shape (circular, hexagonal).
public abstract class BokehBlur : ImageEffect, IComponent, IReferencable, ICollectorHolder, IImageEffect, IGraphicsRenderer, IGraphicsRendererBase, IGraphicsRendererCore, IDisposable
- Inheritance
-
BokehBlur
- Implements
- Derived
- Inherited Members
- Extension Methods
Constructors
BokehBlur()
Initializes a new instance of the BokehBlur class.
protected BokehBlur()
Properties
CoCStrength
public float CoCStrength { get; set; }
Property Value
Radius
Sets the radius of the blur. A child class can override it to do special processing when a new value is provided.
public virtual float Radius { get; set; }
Property Value
Methods
SetColorDepthInput(Texture, Texture)
Provides a color buffer and a depth buffer to apply the blur to.
public void SetColorDepthInput(Texture colorBuffer, Texture depthBuffer)