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

Static Public Member Functions

static Texture2D ToGray (Texture texture)
 
static Texture2D ToGray (string resource_name)
 

Detailed Description

Definition at line 4 of file TextureGray.cs.

Member Function Documentation

static Texture2D TextureGray.ToGray ( Texture  texture)
static

Return the grayscale version of a texture

Returns
Grayscale version of the texture. Texture2D.
Parameters
textureTexture to transform. Texture.

Definition at line 14 of file TextureGray.cs.

Referenced by UI.GUIDisplay.AtomScales(), UI.GUIDisplay.FileSelectedCallback(), and ToGray().

+ Here is the caller graph for this function:

static Texture2D TextureGray.ToGray ( string  resource_name)
static

Return the grayscale version of a texture

Returns
Grayscale version of the texture. Texture2D.
Parameters
resource_namePath of the Texture to transform. String.

Definition at line 39 of file TextureGray.cs.

References ToGray().

+ Here is the call graph for this function:


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