![]() |
UnityMol
0.9.6-875
UnityMol viewer / In developement
|
Public Member Functions | |
void | FourTapCone (RenderTexture source, RenderTexture dest, int iteration) |
Public Attributes | |
int | iterations = 3 |
float | blurSpread = 0.6f |
float | ContrastPower = 5.0f |
float | ContrastBias = 0.3f |
Shader | blackChannelShader |
Protected Member Functions | |
void | OnDisable () |
void | Start () |
Properties | |
static Material | blurMaterial [get] |
Material | BlackChannelMaterial [get] |
Private Member Functions | |
void | DownSample4x (RenderTexture source, RenderTexture dest) |
void | OnRenderImage (RenderTexture source, RenderTexture destination) |
Static Private Member Functions | |
static void | Render4TapQuad (RenderTexture dest, float offsetX, float offsetY) |
static void | Set4TexCoords (float x, float y, float offsetX, float offsetY) |
Private Attributes | |
Material | m_BlackChannelMaterial = null |
Static Private Attributes | |
static string | blurMatString |
static Material | m_BlurMaterial = null |
Definition at line 7 of file DreamEffect.cs.
|
private |
Definition at line 114 of file DreamEffect.cs.
References blurMaterial, and Render4TapQuad().
Referenced by OnRenderImage().
void DreamEffect.FourTapCone | ( | RenderTexture | source, |
RenderTexture | dest, | ||
int | iteration | ||
) |
Definition at line 96 of file DreamEffect.cs.
References blurMaterial, blurSpread, and Render4TapQuad().
Referenced by OnRenderImage().
|
protected |
Definition at line 66 of file DreamEffect.cs.
|
private |
Definition at line 133 of file DreamEffect.cs.
References BlackChannelMaterial, ImageEffects2.Blit(), ImageEffects2.BlitWithMaterial(), DownSample4x(), FourTapCone(), and iterations.
|
staticprivate |
Definition at line 168 of file DreamEffect.cs.
References Set4TexCoords().
Referenced by DownSample4x(), and FourTapCone().
|
staticprivate |
Definition at line 192 of file DreamEffect.cs.
Referenced by Render4TapQuad().
|
protected |
Definition at line 80 of file DreamEffect.cs.
References blurMaterial.
Shader DreamEffect.blackChannelShader |
Definition at line 54 of file DreamEffect.cs.
|
staticprivate |
Definition at line 28 of file DreamEffect.cs.
float DreamEffect.blurSpread = 0.6f |
Blur spread for each iteration.
Lower values give better looking blur, but require more iterations to get large blurs. Value is usually between 0.5 and 1.0.
Definition at line 16 of file DreamEffect.cs.
Referenced by FourTapCone().
float DreamEffect.ContrastBias = 0.3f |
Definition at line 19 of file DreamEffect.cs.
float DreamEffect.ContrastPower = 5.0f |
Definition at line 18 of file DreamEffect.cs.
int DreamEffect.iterations = 3 |
Blur iterations - larger number means more blur.
Definition at line 11 of file DreamEffect.cs.
Referenced by OnRenderImage().
|
private |
Definition at line 55 of file DreamEffect.cs.
|
staticprivate |
Definition at line 42 of file DreamEffect.cs.
|
getprotected |
Definition at line 56 of file DreamEffect.cs.
Referenced by OnRenderImage().
|
staticgetprotected |
Definition at line 43 of file DreamEffect.cs.
Referenced by DownSample4x(), FourTapCone(), and Start().