Struct CrtEffectConfiguration
Mimicks the effect of a Cathode Ray Tube Screen Particularly effective when combined with CRT Mesh shaped render surface (MeshRender stage)
Namespace: Yak2D
Assembly: Yak2D.Api.dll
Syntax
public struct CrtEffectConfiguration
Properties
NumRgbFiltersHorizontally
Number of virtual CRT 3 component pixels horizontally
Declaration
public int NumRgbFiltersHorizontally { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
NumRgbFiltersVertically
Number of virtual CRT 3 component pixels vertically
Declaration
public int NumRgbFiltersVertically { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
RgbPixelFilterAmount
Interpolation between pre- and post-Rgb Filter effect pixels (0 to 1)
Declaration
public float RgbPixelFilterAmount { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Single |
RgbPixelFilterIntensity
Scalar related to how aggressively the pixels are filtered through the RGB 'sub pixels'
Declaration
public float RgbPixelFilterIntensity { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Single |
SimpleScanlinesIntensity
Interpolation between pre- and post-scan line effect pixels (0 to 1)
Declaration
public float SimpleScanlinesIntensity { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Single |
Methods
PreSet(Single, Single)
Returns a pre-set effect configuration scaled between 0 and 1
Declaration
public static CrtEffectConfiguration PreSet(float amount, float aspect)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Single | amount | 0 to 1 intensity of effect (reflects size of 'pixels') |
| System.Single | aspect | Aspect ratio (width / height) |
Returns
| Type | Description |
|---|---|
| CrtEffectConfiguration |