Table of Contents

Class BokehBlur

Namespace
Stride.Rendering.Images
Assembly
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
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

float

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

float

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

colorBuffer Texture

A color buffer to process.

depthBuffer Texture

The depth buffer corresponding to the color buffer provided.