UnityMol  0.9.6-875
UnityMol viewer / In developement
UnityStandardAssets.ImageEffects.NoiseAndScratches Class Reference
+ Inheritance diagram for UnityStandardAssets.ImageEffects.NoiseAndScratches:
+ Collaboration diagram for UnityStandardAssets.ImageEffects.NoiseAndScratches:

Public Attributes

bool monochrome = true
 
float grainIntensityMin = 0.1f
 
float grainIntensityMax = 0.2f
 
float grainSize = 2.0f
 
float scratchIntensityMin = 0.05f
 
float scratchIntensityMax = 0.25f
 
float scratchFPS = 10.0f
 
float scratchJitter = 0.01f
 
Texture grainTexture
 
Texture scratchTexture
 
Shader shaderRGB
 
Shader shaderYUV
 

Protected Member Functions

void Start ()
 
void OnDisable ()
 

Properties

Material material [get]
 

Private Member Functions

void SanitizeParameters ()
 
void OnRenderImage (RenderTexture source, RenderTexture destination)
 

Private Attributes

bool rgbFallback = false
 
Material m_MaterialRGB
 
Material m_MaterialYUV
 
float scratchTimeLeft = 0.0f
 
float scratchX
 
float scratchY
 

Detailed Description

Definition at line 10 of file NoiseAndScratches.cs.

Member Function Documentation

void UnityStandardAssets.ImageEffects.NoiseAndScratches.OnDisable ( )
protected

Definition at line 87 of file NoiseAndScratches.cs.

void UnityStandardAssets.ImageEffects.NoiseAndScratches.OnRenderImage ( RenderTexture  source,
RenderTexture  destination 
)
private

Definition at line 106 of file NoiseAndScratches.cs.

References UnityStandardAssets.ImageEffects.Screen.

void UnityStandardAssets.ImageEffects.NoiseAndScratches.SanitizeParameters ( )
private

Definition at line 94 of file NoiseAndScratches.cs.

void UnityStandardAssets.ImageEffects.NoiseAndScratches.Start ( )
protected

Definition at line 51 of file NoiseAndScratches.cs.

Member Data Documentation

float UnityStandardAssets.ImageEffects.NoiseAndScratches.grainIntensityMax = 0.2f

Definition at line 22 of file NoiseAndScratches.cs.

float UnityStandardAssets.ImageEffects.NoiseAndScratches.grainIntensityMin = 0.1f

Definition at line 20 of file NoiseAndScratches.cs.

float UnityStandardAssets.ImageEffects.NoiseAndScratches.grainSize = 2.0f

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

Definition at line 26 of file NoiseAndScratches.cs.

Texture UnityStandardAssets.ImageEffects.NoiseAndScratches.grainTexture

Definition at line 41 of file NoiseAndScratches.cs.

Material UnityStandardAssets.ImageEffects.NoiseAndScratches.m_MaterialRGB
private

Definition at line 45 of file NoiseAndScratches.cs.

Material UnityStandardAssets.ImageEffects.NoiseAndScratches.m_MaterialYUV
private

Definition at line 46 of file NoiseAndScratches.cs.

bool UnityStandardAssets.ImageEffects.NoiseAndScratches.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.

Definition at line 15 of file NoiseAndScratches.cs.

bool UnityStandardAssets.ImageEffects.NoiseAndScratches.rgbFallback = false
private

Definition at line 16 of file NoiseAndScratches.cs.

float UnityStandardAssets.ImageEffects.NoiseAndScratches.scratchFPS = 10.0f

Scratches jump to another locations at this times per second.

Definition at line 36 of file NoiseAndScratches.cs.

float UnityStandardAssets.ImageEffects.NoiseAndScratches.scratchIntensityMax = 0.25f

Definition at line 32 of file NoiseAndScratches.cs.

float UnityStandardAssets.ImageEffects.NoiseAndScratches.scratchIntensityMin = 0.05f

Definition at line 30 of file NoiseAndScratches.cs.

float UnityStandardAssets.ImageEffects.NoiseAndScratches.scratchJitter = 0.01f

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

Definition at line 39 of file NoiseAndScratches.cs.

Texture UnityStandardAssets.ImageEffects.NoiseAndScratches.scratchTexture

Definition at line 42 of file NoiseAndScratches.cs.

float UnityStandardAssets.ImageEffects.NoiseAndScratches.scratchTimeLeft = 0.0f
private

Definition at line 48 of file NoiseAndScratches.cs.

float UnityStandardAssets.ImageEffects.NoiseAndScratches.scratchX
private

Definition at line 49 of file NoiseAndScratches.cs.

float UnityStandardAssets.ImageEffects.NoiseAndScratches.scratchY
private

Definition at line 49 of file NoiseAndScratches.cs.

Shader UnityStandardAssets.ImageEffects.NoiseAndScratches.shaderRGB

Definition at line 43 of file NoiseAndScratches.cs.

Shader UnityStandardAssets.ImageEffects.NoiseAndScratches.shaderYUV

Definition at line 44 of file NoiseAndScratches.cs.

Property Documentation

Material UnityStandardAssets.ImageEffects.NoiseAndScratches.material
getprotected

Definition at line 73 of file NoiseAndScratches.cs.


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