Table of Contents

Class LensFlare

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

Applies some lens-flare effect to an image. This takes in input a bright-pass buffer, calculates the lens-flares and blends them additively to the specified output.

[DataContract("LensFlare")]
public class LensFlare : ImageEffect, IComponent, IReferencable, ICollectorHolder, IImageEffect, IGraphicsRenderer, IGraphicsRendererBase, IGraphicsRendererCore, IDisposable
Inheritance
LensFlare
Implements
Inherited Members
Extension Methods

Constructors

LensFlare()

Initializes a new instance of the LensFlare class.

public LensFlare()

Properties

Amount

Amount of light streak (intensity).

[Display("Amount", null)]
[DataMember(10)]
public float Amount { get; set; }

Property Value

float

ColorAberrationStrength

Strength of the color aberration.

[Display("Color abberation", null)]
[DataMember(20)]
[DataMemberRange(0, 1, 0.01, 0.1, 2)]
public float ColorAberrationStrength { get; set; }

Property Value

float

ColorAberrations

Modulate the RGB color of each tap.

public Vector3[] ColorAberrations { get; set; }

Property Value

Vector3[]

HaloFactor

Halo factor when the camera is pointing exactly at a light source.

[Display("Halo", null)]
[DataMember(20)]
public float HaloFactor { get; set; }

Property Value

float

ZoomOffsetsDistortions

Defines the offsets (through zooming), and the distortion factor of each tap. A distortion factor > 0 will stretch in a circular way around the center (fisheye-like); in [-1, 0] it will stretch the texture towards the center.

public Vector2[] ZoomOffsetsDistortions { get; set; }

Property Value

Vector2[]

Methods

DrawCore(RenderDrawContext)

Main drawing method for this renderer that must be implemented.

protected override void DrawCore(RenderDrawContext contextParameters)

Parameters

contextParameters RenderDrawContext

InitializeCore()

protected override void InitializeCore()