BokehBlur Class
Namespace: Stride.Rendering.ImagesAssembly: Stride.Rendering.dll
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
              | Name | Description | |
|---|---|---|
| Constructors | ||
| BokehBlur() | Initializes a new instance of the BokehBlur class.  | 
                          |
| Properties | ||
| CoCStrength | ||
| Radius | Sets the radius of the blur. A child class can override it to do special processing when a new value is provided.  | 
                          |
| Methods | ||
| SetColorDepthInput(Texture, Texture) | Provides a color buffer and a depth buffer to apply the blur to.  | 
                          |
Constructors
BokehBlur()
Initializes a new instance of the BokehBlur class.
protected BokehBlur()
              Properties
CoCStrength
public float CoCStrength { get; set; }
              Property Value
| Type | Description | 
|---|---|
| System.Single | 
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
| Type | Description | 
|---|---|
| System.Single | 
Methods
SetColorDepthInput(Texture, Texture)
Provides a color buffer and a depth buffer to apply the blur to.
public void SetColorDepthInput(Texture colorBuffer, Texture depthBuffer)
              Parameters
| Type | Name | Description | 
|---|---|---|
| Texture | colorBuffer | A color buffer to process.  | 
                  
| Texture | depthBuffer | The depth buffer corresponding to the color buffer provided.  |