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

Public Types

enum  Dof34QualitySetting { Dof34QualitySetting.OnlyBackground = 1, Dof34QualitySetting.BackgroundAndForeground = 2 }
 
enum  DofResolution { DofResolution.High = 2, DofResolution.Medium = 3, DofResolution.Low = 4 }
 
enum  DofBlurriness { DofBlurriness.Low = 1, DofBlurriness.High = 2, DofBlurriness.VeryHigh = 4 }
 
enum  BokehDestination { BokehDestination.Background = 0x1, BokehDestination.Foreground = 0x2, BokehDestination.BackgroundAndForeground = 0x3 }
 

Public Member Functions

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

Public Attributes

Dof34QualitySetting quality = Dof34QualitySetting.OnlyBackground
 
DofResolution resolution = DofResolution.Low
 
bool simpleTweakMode = true
 
float focalPoint = 1.0f
 
float smoothness = 0.5f
 
float focalZDistance = 0.0f
 
float focalZStartCurve = 1.0f
 
float focalZEndCurve = 1.0f
 
Transform objectFocus = null
 
float focalSize = 0.0f
 
DofBlurriness bluriness = DofBlurriness.High
 
float maxBlurSpread = 1.75f
 
float foregroundBlurExtrude = 1.15f
 
Shader dofBlurShader
 
Shader dofShader
 
bool visualize = false
 
BokehDestination bokehDestination = BokehDestination.Background
 
bool bokeh = false
 
bool bokehSupport = true
 
Shader bokehShader
 
Texture2D bokehTexture
 
float bokehScale = 2.4f
 
float bokehIntensity = 0.15f
 
float bokehThresholdContrast = 0.1f
 
float bokehThresholdLuminance = 0.55f
 
int bokehDownsample = 1
 

Private Member Functions

void CreateMaterials ()
 
void OnDisable ()
 
void OnEnable ()
 
float FocalDistance01 (float worldDist)
 
int GetDividerBasedOnQuality ()
 
int GetLowResolutionDividerBasedOnQuality (int baseDivider)
 
void OnRenderImage (RenderTexture source, RenderTexture destination)
 
void Blur (RenderTexture from, RenderTexture to, DofBlurriness iterations, int blurPass, float spread)
 
void BlurFg (RenderTexture from, RenderTexture to, DofBlurriness iterations, int blurPass, float spread)
 
void BlurHex (RenderTexture from, RenderTexture to, int blurPass, float spread, RenderTexture tmp)
 
void Downsample (RenderTexture from, RenderTexture to)
 
void AddBokeh (RenderTexture bokehInfo, RenderTexture tempTex, RenderTexture finalTarget)
 
void ReleaseTextures ()
 
void AllocateTextures (bool blurForeground, RenderTexture source, int divider, int lowTexDivider)
 

Private Attributes

float focalStartCurve = 2.0f
 
float focalEndCurve = 2.0f
 
float focalDistance01 = 0.1f
 
Material dofBlurMaterial = null
 
Material dofMaterial = null
 
float widthOverHeight = 1.25f
 
float oneOverBaseSize = 1.0f / 512.0f
 
Material bokehMaterial
 
Camera _camera
 
RenderTexture foregroundTexture = null
 
RenderTexture mediumRezWorkTexture = null
 
RenderTexture finalDefocus = null
 
RenderTexture lowRezWorkTexture = null
 
RenderTexture bokehSource = null
 
RenderTexture bokehSource2 = null
 

Static Private Attributes

static int SMOOTH_DOWNSAMPLE_PASS = 6
 
static float BOKEH_EXTRA_BLUR = 2.0f
 

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

Member Enumeration Documentation

Enumerator
Background 
Foreground 
BackgroundAndForeground 

Definition at line 31 of file DepthOfFieldDeprecated.cs.

Enumerator
OnlyBackground 
BackgroundAndForeground 

Definition at line 11 of file DepthOfFieldDeprecated.cs.

Enumerator
Low 
High 
VeryHigh 

Definition at line 24 of file DepthOfFieldDeprecated.cs.

Enumerator
High 
Medium 
Low 

Definition at line 17 of file DepthOfFieldDeprecated.cs.

Member Function Documentation

void UnityStandardAssets.ImageEffects.DepthOfFieldDeprecated.AddBokeh ( RenderTexture  bokehInfo,
RenderTexture  tempTex,
RenderTexture  finalTarget 
)
private

Definition at line 354 of file DepthOfFieldDeprecated.cs.

References UnityStandardAssets.ImageEffects.Quads.GetMeshes().

+ Here is the call graph for this function:

void UnityStandardAssets.ImageEffects.DepthOfFieldDeprecated.AllocateTextures ( bool  blurForeground,
RenderTexture  source,
int  divider,
int  lowTexDivider 
)
private

Definition at line 399 of file DepthOfFieldDeprecated.cs.

void UnityStandardAssets.ImageEffects.DepthOfFieldDeprecated.Blur ( RenderTexture  from,
RenderTexture  to,
DofBlurriness  iterations,
int  blurPass,
float  spread 
)
private

Definition at line 295 of file DepthOfFieldDeprecated.cs.

void UnityStandardAssets.ImageEffects.DepthOfFieldDeprecated.BlurFg ( RenderTexture  from,
RenderTexture  to,
DofBlurriness  iterations,
int  blurPass,
float  spread 
)
private

Definition at line 315 of file DepthOfFieldDeprecated.cs.

void UnityStandardAssets.ImageEffects.DepthOfFieldDeprecated.BlurHex ( RenderTexture  from,
RenderTexture  to,
int  blurPass,
float  spread,
RenderTexture  tmp 
)
private

Definition at line 338 of file DepthOfFieldDeprecated.cs.

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

Reimplemented from UnityStandardAssets.ImageEffects.PostEffectsBase.

Definition at line 99 of file DepthOfFieldDeprecated.cs.

void UnityStandardAssets.ImageEffects.DepthOfFieldDeprecated.CreateMaterials ( )
private

Definition at line 89 of file DepthOfFieldDeprecated.cs.

void UnityStandardAssets.ImageEffects.DepthOfFieldDeprecated.Downsample ( RenderTexture  from,
RenderTexture  to 
)
private

Definition at line 349 of file DepthOfFieldDeprecated.cs.

float UnityStandardAssets.ImageEffects.DepthOfFieldDeprecated.FocalDistance01 ( float  worldDist)
private

Definition at line 123 of file DepthOfFieldDeprecated.cs.

int UnityStandardAssets.ImageEffects.DepthOfFieldDeprecated.GetDividerBasedOnQuality ( )
private

Definition at line 127 of file DepthOfFieldDeprecated.cs.

int UnityStandardAssets.ImageEffects.DepthOfFieldDeprecated.GetLowResolutionDividerBasedOnQuality ( int  baseDivider)
private

Definition at line 136 of file DepthOfFieldDeprecated.cs.

void UnityStandardAssets.ImageEffects.DepthOfFieldDeprecated.OnDisable ( )
private

Definition at line 114 of file DepthOfFieldDeprecated.cs.

References UnityStandardAssets.ImageEffects.Quads.Cleanup().

+ Here is the call graph for this function:

void UnityStandardAssets.ImageEffects.DepthOfFieldDeprecated.OnEnable ( )
private

Definition at line 118 of file DepthOfFieldDeprecated.cs.

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

Definition at line 152 of file DepthOfFieldDeprecated.cs.

void UnityStandardAssets.ImageEffects.DepthOfFieldDeprecated.ReleaseTextures ( )
private

Definition at line 390 of file DepthOfFieldDeprecated.cs.

Member Data Documentation

Camera UnityStandardAssets.ImageEffects.DepthOfFieldDeprecated._camera
private

Definition at line 87 of file DepthOfFieldDeprecated.cs.

DofBlurriness UnityStandardAssets.ImageEffects.DepthOfFieldDeprecated.bluriness = DofBlurriness.High

Definition at line 59 of file DepthOfFieldDeprecated.cs.

bool UnityStandardAssets.ImageEffects.DepthOfFieldDeprecated.bokeh = false

Definition at line 76 of file DepthOfFieldDeprecated.cs.

float UnityStandardAssets.ImageEffects.DepthOfFieldDeprecated.BOKEH_EXTRA_BLUR = 2.0f
staticprivate

Definition at line 39 of file DepthOfFieldDeprecated.cs.

BokehDestination UnityStandardAssets.ImageEffects.DepthOfFieldDeprecated.bokehDestination = BokehDestination.Background

Definition at line 71 of file DepthOfFieldDeprecated.cs.

int UnityStandardAssets.ImageEffects.DepthOfFieldDeprecated.bokehDownsample = 1

Definition at line 84 of file DepthOfFieldDeprecated.cs.

float UnityStandardAssets.ImageEffects.DepthOfFieldDeprecated.bokehIntensity = 0.15f

Definition at line 81 of file DepthOfFieldDeprecated.cs.

Material UnityStandardAssets.ImageEffects.DepthOfFieldDeprecated.bokehMaterial
private

Definition at line 85 of file DepthOfFieldDeprecated.cs.

float UnityStandardAssets.ImageEffects.DepthOfFieldDeprecated.bokehScale = 2.4f

Definition at line 80 of file DepthOfFieldDeprecated.cs.

Shader UnityStandardAssets.ImageEffects.DepthOfFieldDeprecated.bokehShader

Definition at line 78 of file DepthOfFieldDeprecated.cs.

RenderTexture UnityStandardAssets.ImageEffects.DepthOfFieldDeprecated.bokehSource = null
private

Definition at line 149 of file DepthOfFieldDeprecated.cs.

RenderTexture UnityStandardAssets.ImageEffects.DepthOfFieldDeprecated.bokehSource2 = null
private

Definition at line 150 of file DepthOfFieldDeprecated.cs.

bool UnityStandardAssets.ImageEffects.DepthOfFieldDeprecated.bokehSupport = true

Definition at line 77 of file DepthOfFieldDeprecated.cs.

Texture2D UnityStandardAssets.ImageEffects.DepthOfFieldDeprecated.bokehTexture

Definition at line 79 of file DepthOfFieldDeprecated.cs.

float UnityStandardAssets.ImageEffects.DepthOfFieldDeprecated.bokehThresholdContrast = 0.1f

Definition at line 82 of file DepthOfFieldDeprecated.cs.

float UnityStandardAssets.ImageEffects.DepthOfFieldDeprecated.bokehThresholdLuminance = 0.55f

Definition at line 83 of file DepthOfFieldDeprecated.cs.

Material UnityStandardAssets.ImageEffects.DepthOfFieldDeprecated.dofBlurMaterial = null
private

Definition at line 65 of file DepthOfFieldDeprecated.cs.

Shader UnityStandardAssets.ImageEffects.DepthOfFieldDeprecated.dofBlurShader

Definition at line 64 of file DepthOfFieldDeprecated.cs.

Material UnityStandardAssets.ImageEffects.DepthOfFieldDeprecated.dofMaterial = null
private

Definition at line 68 of file DepthOfFieldDeprecated.cs.

Shader UnityStandardAssets.ImageEffects.DepthOfFieldDeprecated.dofShader

Definition at line 67 of file DepthOfFieldDeprecated.cs.

RenderTexture UnityStandardAssets.ImageEffects.DepthOfFieldDeprecated.finalDefocus = null
private

Definition at line 147 of file DepthOfFieldDeprecated.cs.

float UnityStandardAssets.ImageEffects.DepthOfFieldDeprecated.focalDistance01 = 0.1f
private

Definition at line 54 of file DepthOfFieldDeprecated.cs.

float UnityStandardAssets.ImageEffects.DepthOfFieldDeprecated.focalEndCurve = 2.0f
private

Definition at line 53 of file DepthOfFieldDeprecated.cs.

float UnityStandardAssets.ImageEffects.DepthOfFieldDeprecated.focalPoint = 1.0f

Definition at line 45 of file DepthOfFieldDeprecated.cs.

float UnityStandardAssets.ImageEffects.DepthOfFieldDeprecated.focalSize = 0.0f

Definition at line 57 of file DepthOfFieldDeprecated.cs.

float UnityStandardAssets.ImageEffects.DepthOfFieldDeprecated.focalStartCurve = 2.0f
private

Definition at line 52 of file DepthOfFieldDeprecated.cs.

float UnityStandardAssets.ImageEffects.DepthOfFieldDeprecated.focalZDistance = 0.0f

Definition at line 48 of file DepthOfFieldDeprecated.cs.

float UnityStandardAssets.ImageEffects.DepthOfFieldDeprecated.focalZEndCurve = 1.0f

Definition at line 50 of file DepthOfFieldDeprecated.cs.

float UnityStandardAssets.ImageEffects.DepthOfFieldDeprecated.focalZStartCurve = 1.0f

Definition at line 49 of file DepthOfFieldDeprecated.cs.

float UnityStandardAssets.ImageEffects.DepthOfFieldDeprecated.foregroundBlurExtrude = 1.15f

Definition at line 62 of file DepthOfFieldDeprecated.cs.

RenderTexture UnityStandardAssets.ImageEffects.DepthOfFieldDeprecated.foregroundTexture = null
private

Definition at line 145 of file DepthOfFieldDeprecated.cs.

RenderTexture UnityStandardAssets.ImageEffects.DepthOfFieldDeprecated.lowRezWorkTexture = null
private

Definition at line 148 of file DepthOfFieldDeprecated.cs.

float UnityStandardAssets.ImageEffects.DepthOfFieldDeprecated.maxBlurSpread = 1.75f

Definition at line 60 of file DepthOfFieldDeprecated.cs.

RenderTexture UnityStandardAssets.ImageEffects.DepthOfFieldDeprecated.mediumRezWorkTexture = null
private

Definition at line 146 of file DepthOfFieldDeprecated.cs.

Transform UnityStandardAssets.ImageEffects.DepthOfFieldDeprecated.objectFocus = null

Definition at line 56 of file DepthOfFieldDeprecated.cs.

float UnityStandardAssets.ImageEffects.DepthOfFieldDeprecated.oneOverBaseSize = 1.0f / 512.0f
private

Definition at line 74 of file DepthOfFieldDeprecated.cs.

Dof34QualitySetting UnityStandardAssets.ImageEffects.DepthOfFieldDeprecated.quality = Dof34QualitySetting.OnlyBackground

Definition at line 41 of file DepthOfFieldDeprecated.cs.

DofResolution UnityStandardAssets.ImageEffects.DepthOfFieldDeprecated.resolution = DofResolution.Low

Definition at line 42 of file DepthOfFieldDeprecated.cs.

bool UnityStandardAssets.ImageEffects.DepthOfFieldDeprecated.simpleTweakMode = true

Definition at line 43 of file DepthOfFieldDeprecated.cs.

int UnityStandardAssets.ImageEffects.DepthOfFieldDeprecated.SMOOTH_DOWNSAMPLE_PASS = 6
staticprivate

Definition at line 38 of file DepthOfFieldDeprecated.cs.

float UnityStandardAssets.ImageEffects.DepthOfFieldDeprecated.smoothness = 0.5f

Definition at line 46 of file DepthOfFieldDeprecated.cs.

bool UnityStandardAssets.ImageEffects.DepthOfFieldDeprecated.visualize = false

Definition at line 70 of file DepthOfFieldDeprecated.cs.

float UnityStandardAssets.ImageEffects.DepthOfFieldDeprecated.widthOverHeight = 1.25f
private

Definition at line 73 of file DepthOfFieldDeprecated.cs.


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