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

Public Types

enum  SunShaftsResolution { SunShaftsResolution.Low = 0, SunShaftsResolution.Normal = 1, SunShaftsResolution.High = 2 }
 
enum  ShaftsScreenBlendMode { ShaftsScreenBlendMode.Screen = 0, ShaftsScreenBlendMode.Add = 1 }
 

Public Member Functions

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

Public Attributes

SunShaftsResolution resolution = SunShaftsResolution.Normal
 
ShaftsScreenBlendMode screenBlendMode = ShaftsScreenBlendMode.Screen
 
Transform sunTransform
 
int radialBlurIterations = 2
 
Color sunColor = Color.white
 
Color sunThreshold = new Color(0.87f,0.74f,0.65f)
 
float sunShaftBlurRadius = 2.5f
 
float sunShaftIntensity = 1.15f
 
float maxRadius = 0.75f
 
bool useDepthTexture = true
 
Shader sunShaftsShader
 
Shader simpleClearShader
 

Private Member Functions

void OnRenderImage (RenderTexture source, RenderTexture destination)
 

Private Attributes

Material sunShaftsMaterial
 
Material simpleClearMaterial
 

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 SunShafts.cs.

Member Enumeration Documentation

Enumerator
Screen 
Add 

Definition at line 18 of file SunShafts.cs.

Enumerator
Low 
Normal 
High 

Definition at line 11 of file SunShafts.cs.

Member Function Documentation

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

Reimplemented from UnityStandardAssets.ImageEffects.PostEffectsBase.

Definition at line 46 of file SunShafts.cs.

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

Definition at line 57 of file SunShafts.cs.

Member Data Documentation

float UnityStandardAssets.ImageEffects.SunShafts.maxRadius = 0.75f

Definition at line 35 of file SunShafts.cs.

int UnityStandardAssets.ImageEffects.SunShafts.radialBlurIterations = 2

Definition at line 29 of file SunShafts.cs.

SunShaftsResolution UnityStandardAssets.ImageEffects.SunShafts.resolution = SunShaftsResolution.Normal

Definition at line 25 of file SunShafts.cs.

ShaftsScreenBlendMode UnityStandardAssets.ImageEffects.SunShafts.screenBlendMode = ShaftsScreenBlendMode.Screen

Definition at line 26 of file SunShafts.cs.

Material UnityStandardAssets.ImageEffects.SunShafts.simpleClearMaterial
private

Definition at line 43 of file SunShafts.cs.

Shader UnityStandardAssets.ImageEffects.SunShafts.simpleClearShader

Definition at line 42 of file SunShafts.cs.

Color UnityStandardAssets.ImageEffects.SunShafts.sunColor = Color.white

Definition at line 30 of file SunShafts.cs.

float UnityStandardAssets.ImageEffects.SunShafts.sunShaftBlurRadius = 2.5f

Definition at line 32 of file SunShafts.cs.

float UnityStandardAssets.ImageEffects.SunShafts.sunShaftIntensity = 1.15f

Definition at line 33 of file SunShafts.cs.

Material UnityStandardAssets.ImageEffects.SunShafts.sunShaftsMaterial
private

Definition at line 40 of file SunShafts.cs.

Shader UnityStandardAssets.ImageEffects.SunShafts.sunShaftsShader

Definition at line 39 of file SunShafts.cs.

Color UnityStandardAssets.ImageEffects.SunShafts.sunThreshold = new Color(0.87f,0.74f,0.65f)

Definition at line 31 of file SunShafts.cs.

Transform UnityStandardAssets.ImageEffects.SunShafts.sunTransform

Definition at line 28 of file SunShafts.cs.

bool UnityStandardAssets.ImageEffects.SunShafts.useDepthTexture = true

Definition at line 37 of file SunShafts.cs.


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