Show / Hide Table of Contents

Struct CrtEffectConfiguration

Mimicks the effect of a Cathode Ray Tube Screen Particularly effective when combined with CRT Mesh shaped render surface (MeshRender stage)

Inherited Members
ValueType.Equals(object)
ValueType.GetHashCode()
ValueType.ToString()
object.GetType()
object.Equals(object, object)
object.ReferenceEquals(object, object)
Namespace: Yak2D
Assembly: Yak2D.Api.dll
Syntax
public struct CrtEffectConfiguration

Properties

NumRgbFiltersHorizontally

Number of virtual CRT 3 component pixels horizontally

Declaration
public int NumRgbFiltersHorizontally { readonly get; set; }
Property Value
Type Description
int

NumRgbFiltersVertically

Number of virtual CRT 3 component pixels vertically

Declaration
public int NumRgbFiltersVertically { readonly get; set; }
Property Value
Type Description
int

RgbPixelFilterAmount

Interpolation between pre- and post-Rgb Filter effect pixels (0 to 1)

Declaration
public float RgbPixelFilterAmount { readonly get; set; }
Property Value
Type Description
float

RgbPixelFilterIntensity

Scalar related to how aggressively the pixels are filtered through the RGB 'sub pixels'

Declaration
public float RgbPixelFilterIntensity { readonly get; set; }
Property Value
Type Description
float

SimpleScanlinesIntensity

Interpolation between pre- and post-scan line effect pixels (0 to 1)

Declaration
public float SimpleScanlinesIntensity { readonly get; set; }
Property Value
Type Description
float

Methods

PreSet(float, float)

Returns a pre-set effect configuration scaled between 0 and 1

Declaration
public static CrtEffectConfiguration PreSet(float amount, float aspect)
Parameters
Type Name Description
float amount

0 to 1 intensity of effect (reflects size of 'pixels')

float aspect

Aspect ratio (width / height)

Returns
Type Description
CrtEffectConfiguration
In this article
Back to top yak2D - Alex Paterson