Table of Contents

Class GaussianBokeh

Namespace
Stride.Rendering.Images
Assembly
Stride.Rendering.dll

Applies a depth-aware gaussian blur to a texture.

public class GaussianBokeh : BokehBlur, IComponent, IReferencable, ICollectorHolder, IImageEffect, IGraphicsRenderer, IGraphicsRendererBase, IGraphicsRendererCore, IDisposable
Inheritance
GaussianBokeh
Implements
Inherited Members
Extension Methods

Remarks

This does not produce beautiful bokeh shapes, but it is quite light-weight and performance-friendly.

Constructors

GaussianBokeh()

Initializes a new instance of the GaussianBokeh class.

public GaussianBokeh()

Properties

Radius

Sets the radius of the blur. A child class can override it to do special processing when a new value is provided.

public override float Radius { get; set; }

Property Value

float

Methods

DrawCore(RenderDrawContext)

Main drawing method for this renderer that must be implemented.

protected override void DrawCore(RenderDrawContext context)

Parameters

context RenderDrawContext

The context.

InitializeCore()

protected override void InitializeCore()