Class LightStreak
Applies some light-streaks effect to an image. This takes in input a bright-pass buffer, calculates the light-streaks and blends them additively to the specified output.
[DataContract("LightStreak")]
public class LightStreak : ImageEffect, IComponent, IReferencable, ICollectorHolder, IImageEffect, IGraphicsRenderer, IGraphicsRendererBase, IGraphicsRendererCore, IDisposable
- Inheritance
-
LightStreak
- Implements
- Inherited Members
- Extension Methods
Constructors
LightStreak()
Initializes a new instance of the LightStreak class.
public LightStreak()
Properties
Amount
Amount of light streak (intensity).
[DataMember(10)]
public float Amount { get; set; }
Property Value
AnamorphicOffsetsWeights
For each light streak, you can define some sub-light-streaks drawn at a certain offset of the original streak, with a certain weight.
public Vector3[] AnamorphicOffsetsWeights { get; set; }
Property Value
- Vector3[]
Attenuation
How fast the attenuation is along a streak. (Affects the streak length.)
[DataMember(30)]
[DataMemberRange(0, 1, 0.009999999776482582, 0.10000000149011612, 2)]
public float Attenuation { get; set; }
Property Value
ColorAberrationCoefficients
RGB coefficients to apply for color aberration along a streak.
public Vector3 ColorAberrationCoefficients { get; set; }
Property Value
ColorAberrationStrength
Strength of the color aberration.
[Display("Color abberation", null)]
[DataMember(50)]
[DataMemberRange(0, 1, 0.01, 0.1, 2)]
public float ColorAberrationStrength { get; set; }
Property Value
IsAnamorphic
Applies an anamorphic effect to the streak.
[Display("Anamorphic", null)]
[DataMember(60)]
public bool IsAnamorphic { get; set; }
Property Value
IterationCount
Number of stretching iterations to apply.
public int IterationCount { get; set; }
Property Value
Remarks
Each iteration rises the length of the light streak to the next power of TapsPerIteration.
Phase
Phase angle for the streaks, in degrees.
[DataMember(40)]
[DataMemberRange(0, 180, 1, 10, 1)]
public float Phase { get; set; }
Property Value
StreakCount
Number of light streaks.
[Display("Streaks", null)]
[DataMember(20)]
[DataMemberRange(1, 8, 1, 1, 0)]
public int StreakCount { get; set; }
Property Value
TapsPerIteration
Number of texture taps for each iteration of light streak extension.
public int TapsPerIteration { get; }
Property Value
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()