UnityMol  0.9.6-875
UnityMol viewer / In developement
ImageEffects2 Class Reference

Static Public Member Functions

static Material GetBlitMaterial (BlendMode mode)
 
static void Blit (RenderTexture source, RenderTexture dest, BlendMode blendMode)
 
static void Blit (RenderTexture source, RenderTexture dest)
 
static void Blit (RenderTexture source, Rect sourceRect, RenderTexture dest, Rect destRect, BlendMode blendMode)
 
static void BlitWithMaterial (Material material, RenderTexture source, RenderTexture destination)
 
static void RenderDistortion (Material material, RenderTexture source, RenderTexture destination, float angle, Vector2 center, Vector2 radius)
 
static void DrawQuad (bool invertY)
 
static void DrawGrid (int xSize, int ySize)
 

Static Private Attributes

static Material[] m_BlitMaterials = {null, null, null, null, null, null}
 

Detailed Description

A Utility class for performing various image based rendering tasks.

Definition at line 15 of file ImageEffects2.cs.

Member Function Documentation

static void ImageEffects2.Blit ( RenderTexture  source,
RenderTexture  dest,
BlendMode  blendMode 
)
static

Copies one render texture onto another.

This function copies /source/ onto /dest/, optionally using a custom blend mode. If /blendMode/ is left out, the default operation is simply to copy one texture on to another. This function will copy the whole source texture on to the whole destination texture. If the sizes differ, the image in the source texture will get stretched to fit. The source and destination textures cannot be the same.

Definition at line 97 of file ImageEffects2.cs.

Referenced by Blit(), and DreamEffect.OnRenderImage().

+ Here is the caller graph for this function:

static void ImageEffects2.Blit ( RenderTexture  source,
RenderTexture  dest 
)
static

Definition at line 100 of file ImageEffects2.cs.

References Blit().

+ Here is the call graph for this function:

static void ImageEffects2.Blit ( RenderTexture  source,
Rect  sourceRect,
RenderTexture  dest,
Rect  destRect,
BlendMode  blendMode 
)
static

Copies one render texture onto another.

Definition at line 105 of file ImageEffects2.cs.

References DrawQuad(), and GetBlitMaterial().

+ Here is the call graph for this function:

static void ImageEffects2.BlitWithMaterial ( Material  material,
RenderTexture  source,
RenderTexture  destination 
)
static

Definition at line 122 of file ImageEffects2.cs.

Referenced by DreamEffect.OnRenderImage().

+ Here is the caller graph for this function:

static void ImageEffects2.DrawGrid ( int  xSize,
int  ySize 
)
static

Definition at line 162 of file ImageEffects2.cs.

static void ImageEffects2.DrawQuad ( bool  invertY)
static

Definition at line 146 of file ImageEffects2.cs.

Referenced by Blit().

+ Here is the caller graph for this function:

static Material ImageEffects2.GetBlitMaterial ( BlendMode  mode)
static

Definition at line 18 of file ImageEffects2.cs.

Referenced by Blit().

+ Here is the caller graph for this function:

static void ImageEffects2.RenderDistortion ( Material  material,
RenderTexture  source,
RenderTexture  destination,
float  angle,
Vector2  center,
Vector2  radius 
)
static

Definition at line 128 of file ImageEffects2.cs.

Member Data Documentation

Material [] ImageEffects2.m_BlitMaterials = {null, null, null, null, null, null}
staticprivate

Definition at line 16 of file ImageEffects2.cs.


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