Definition at line 8 of file ContrastStretch.cs.
void UnityStandardAssets.ImageEffects.ContrastStretch.CalculateAdaptation |
( |
Texture |
curTexture | ) |
|
|
private |
Helper function to do gradual adaptation to min/max luminances.
Definition at line 173 of file ContrastStretch.cs.
void UnityStandardAssets.ImageEffects.ContrastStretch.OnDisable |
( |
| ) |
|
|
private |
void UnityStandardAssets.ImageEffects.ContrastStretch.OnEnable |
( |
| ) |
|
|
private |
void UnityStandardAssets.ImageEffects.ContrastStretch.OnRenderImage |
( |
RenderTexture |
source, |
|
|
RenderTexture |
destination |
|
) |
| |
|
private |
void UnityStandardAssets.ImageEffects.ContrastStretch.Start |
( |
| ) |
|
|
private |
float UnityStandardAssets.ImageEffects.ContrastStretch.adaptationSpeed = 0.02f |
Adaptation speed - percents per frame, if playing at 30FPS.
Default is 0.02 (2% each 1/30s).
Definition at line 13 of file ContrastStretch.cs.
RenderTexture [] UnityStandardAssets.ImageEffects.ContrastStretch.adaptRenderTex = new RenderTexture[2] |
|
private |
int UnityStandardAssets.ImageEffects.ContrastStretch.curAdaptIndex = 0 |
|
private |
float UnityStandardAssets.ImageEffects.ContrastStretch.limitMaximum = 0.6f |
The limit on the maximum luminance (0...1) - we won't go below this.
Definition at line 26 of file ContrastStretch.cs.
float UnityStandardAssets.ImageEffects.ContrastStretch.limitMinimum = 0.2f |
If our scene is really dark (or really bright), we might not want to stretch its contrast to the full range.
limitMinimum=0, limitMaximum=1 is the same as not applying the effect at all. limitMinimum=1, limitMaximum=0 is always stretching colors to full range. The limit on the minimum luminance (0...1) - we won't go above this.
Definition at line 22 of file ContrastStretch.cs.
Material UnityStandardAssets.ImageEffects.ContrastStretch.m_materialAdapt |
|
private |
Material UnityStandardAssets.ImageEffects.ContrastStretch.m_materialApply |
|
private |
Material UnityStandardAssets.ImageEffects.ContrastStretch.m_materialLum |
|
private |
Material UnityStandardAssets.ImageEffects.ContrastStretch.m_materialReduce |
|
private |
Shader UnityStandardAssets.ImageEffects.ContrastStretch.shaderAdapt |
Shader UnityStandardAssets.ImageEffects.ContrastStretch.shaderApply |
Shader UnityStandardAssets.ImageEffects.ContrastStretch.shaderLum |
Shader UnityStandardAssets.ImageEffects.ContrastStretch.shaderReduce |
Material UnityStandardAssets.ImageEffects.ContrastStretch.materialAdapt |
|
getprotected |
Material UnityStandardAssets.ImageEffects.ContrastStretch.materialApply |
|
getprotected |
Material UnityStandardAssets.ImageEffects.ContrastStretch.materialLum |
|
getprotected |
Material UnityStandardAssets.ImageEffects.ContrastStretch.materialReduce |
|
getprotected |
The documentation for this class was generated from the following file: