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

Public Types

enum  EdgeDetectMode {
  EdgeDetectMode.TriangleDepthNormals = 0, EdgeDetectMode.RobertsCrossDepthNormals = 1, EdgeDetectMode.SobelDepth = 2, EdgeDetectMode.SobelDepthThin = 3,
  EdgeDetectMode.TriangleLuminance = 4
}
 

Public Member Functions

override bool CheckResources ()
 
- Public Member Functions inherited from UnityStandardAssets.ImageEffects.PostEffectsBase
bool Dx11Support ()
 

Public Attributes

EdgeDetectMode mode = EdgeDetectMode.SobelDepthThin
 
float sensitivityDepth = 1.0f
 
float sensitivityNormals = 1.0f
 
float lumThreshold = 0.2f
 
float edgeExp = 1.0f
 
float sampleDist = 1.0f
 
float edgesOnly = 0.0f
 
Color edgesOnlyBgColor = Color.white
 
Shader edgeDetectShader
 

Private Member Functions

new void Start ()
 
void SetCameraFlag ()
 
void OnEnable ()
 
void OnRenderImage (RenderTexture source, RenderTexture destination)
 

Private Attributes

Material edgeDetectMaterial = null
 
EdgeDetectMode oldMode = EdgeDetectMode.SobelDepthThin
 

Additional Inherited Members

- Protected Member Functions inherited from UnityStandardAssets.ImageEffects.PostEffectsBase
Material CheckShaderAndCreateMaterial (Shader s, Material m2Create)
 
Material CreateMaterial (Shader s, Material m2Create)
 
bool CheckSupport ()
 
void Start ()
 
bool CheckSupport (bool needDepth)
 
bool CheckSupport (bool needDepth, bool needHdr)
 
void ReportAutoDisable ()
 
void NotSupported ()
 
void DrawBorder (RenderTexture dest, Material material)
 
- Protected Attributes inherited from UnityStandardAssets.ImageEffects.PostEffectsBase
bool supportHDRTextures = true
 
bool supportDX11 = false
 
bool isSupported = true
 

Detailed Description

Definition at line 9 of file EdgeDetection.cs.

Member Enumeration Documentation

Enumerator
TriangleDepthNormals 
RobertsCrossDepthNormals 
SobelDepth 
SobelDepthThin 
TriangleLuminance 

Definition at line 11 of file EdgeDetection.cs.

Member Function Documentation

override bool UnityStandardAssets.ImageEffects.EdgeDetection.CheckResources ( )
virtual

Reimplemented from UnityStandardAssets.ImageEffects.PostEffectsBase.

Definition at line 35 of file EdgeDetection.cs.

void UnityStandardAssets.ImageEffects.EdgeDetection.OnEnable ( )
private

Definition at line 64 of file EdgeDetection.cs.

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

Definition at line 70 of file EdgeDetection.cs.

void UnityStandardAssets.ImageEffects.EdgeDetection.SetCameraFlag ( )
private

Definition at line 56 of file EdgeDetection.cs.

new void UnityStandardAssets.ImageEffects.EdgeDetection.Start ( )
private

Definition at line 51 of file EdgeDetection.cs.

Member Data Documentation

Material UnityStandardAssets.ImageEffects.EdgeDetection.edgeDetectMaterial = null
private

Definition at line 31 of file EdgeDetection.cs.

Shader UnityStandardAssets.ImageEffects.EdgeDetection.edgeDetectShader

Definition at line 30 of file EdgeDetection.cs.

float UnityStandardAssets.ImageEffects.EdgeDetection.edgeExp = 1.0f

Definition at line 25 of file EdgeDetection.cs.

float UnityStandardAssets.ImageEffects.EdgeDetection.edgesOnly = 0.0f

Definition at line 27 of file EdgeDetection.cs.

Color UnityStandardAssets.ImageEffects.EdgeDetection.edgesOnlyBgColor = Color.white

Definition at line 28 of file EdgeDetection.cs.

float UnityStandardAssets.ImageEffects.EdgeDetection.lumThreshold = 0.2f

Definition at line 24 of file EdgeDetection.cs.

EdgeDetectMode UnityStandardAssets.ImageEffects.EdgeDetection.mode = EdgeDetectMode.SobelDepthThin

Definition at line 21 of file EdgeDetection.cs.

EdgeDetectMode UnityStandardAssets.ImageEffects.EdgeDetection.oldMode = EdgeDetectMode.SobelDepthThin
private

Definition at line 32 of file EdgeDetection.cs.

float UnityStandardAssets.ImageEffects.EdgeDetection.sampleDist = 1.0f

Definition at line 26 of file EdgeDetection.cs.

float UnityStandardAssets.ImageEffects.EdgeDetection.sensitivityDepth = 1.0f

Definition at line 22 of file EdgeDetection.cs.

float UnityStandardAssets.ImageEffects.EdgeDetection.sensitivityNormals = 1.0f

Definition at line 23 of file EdgeDetection.cs.


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