LensFlare Class
Namespace: Stride.Rendering.ImagesAssembly: 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
Name | Description | |
---|---|---|
Constructors | ||
LensFlare() | Initializes a new instance of the LensFlare class. |
|
Properties | ||
Amount | Amount of light streak (intensity). |
|
ColorAberrations | Modulate the RGB color of each tap. |
|
ColorAberrationStrength | Strength of the color aberration. |
|
HaloFactor | Halo factor when the camera is pointing exactly at a light source. |
|
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. |
|
Methods | ||
DrawCore(RenderDrawContext) | ||
InitializeCore() |
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
Type | Description |
---|---|
System.Single |
ColorAberrations
Modulate the RGB color of each tap.
public Vector3[] ColorAberrations { get; set; }
Property Value
Type | Description |
---|---|
Vector3[] |
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
Type | Description |
---|---|
System.Single |
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
Type | Description |
---|---|
System.Single |
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
Type | Description |
---|---|
Vector2[] |
Methods
DrawCore(RenderDrawContext)
protected override void DrawCore(RenderDrawContext contextParameters)
Parameters
Type | Name | Description |
---|---|---|
RenderDrawContext | contextParameters |
Overrides
InitializeCore()
protected override void InitializeCore()