Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Public Attributes | Protected Member Functions | Properties | List of all members
NoiseEffect Class Reference
Inheritance diagram for NoiseEffect:

Public Attributes

float grainIntensityMax = 0.2f
 
float grainIntensityMin = 0.1f
 
float grainSize = 2.0f
 The size of the noise grains (1 = one pixel). More...
 
Texture grainTexture
 
bool monochrome = true
 
float scratchFPS = 10.0f
 Scratches jump to another locations at this times per second. More...
 
float scratchIntensityMax = 0.25f
 
float scratchIntensityMin = 0.05f
 
float scratchJitter = 0.01f
 While scratches are in the same location, they jitter a bit. More...
 
Texture scratchTexture
 
Shader shaderRGB
 
Shader shaderYUV
 

Protected Member Functions

void OnDisable ()
 
void Start ()
 

Properties

Material material [get]
 

Member Function Documentation

void NoiseEffect.OnDisable ( )
inlineprotected
void NoiseEffect.Start ( )
inlineprotected

Member Data Documentation

float NoiseEffect.grainIntensityMax = 0.2f
float NoiseEffect.grainIntensityMin = 0.1f
float NoiseEffect.grainSize = 2.0f

The size of the noise grains (1 = one pixel).

Scratches take random intensity from Min to Max.

Texture NoiseEffect.grainTexture
bool NoiseEffect.monochrome = true

Monochrome noise just adds grain. Non-monochrome noise more resembles VCR as it adds noise in YUV color space, thus introducing magenta/green colors.

float NoiseEffect.scratchFPS = 10.0f

Scratches jump to another locations at this times per second.

float NoiseEffect.scratchIntensityMax = 0.25f
float NoiseEffect.scratchIntensityMin = 0.05f
float NoiseEffect.scratchJitter = 0.01f

While scratches are in the same location, they jitter a bit.

Texture NoiseEffect.scratchTexture
Shader NoiseEffect.shaderRGB
Shader NoiseEffect.shaderYUV

Property Documentation

Material NoiseEffect.material
getprotected

The documentation for this class was generated from the following file: