Inheritance diagram for Loonim.Blur:
Loonim.BitmapNode Loonim.TextureNode

Public Member Functions

 Blur ()
 
 Blur (TextureNode src, TextureNode rx, TextureNode ry, TextureNode method)
 
override void Draw (DrawInfo info)
 Allocates GPU drawing meta now. More...
 
override void Prepare (DrawInfo info)
 Gets the node ready to draw. More...
 
- Public Member Functions inherited from Loonim.BitmapNode
 BitmapNode ()
 
 BitmapNode (int src)
 
void Clear (DrawInfo info)
 
override UnityEngine.Color GetColour (double x, double y)
 Gets this nodes colour output. More...
 
override double GetWrapped (double x, double y, int wrap)
 Gets a wrapped value from this node. Range of +/- 1. More...
 
override double GetValue (double x, double y, double z)
 Gets the value from this node. This is required at a minimum. Range of +/- 1. More...
 
override double GetValue (double x, double y)
 Gets the value from this node. This is required at a minimum. Range of +/- 1. More...
 
- Public Member Functions inherited from Loonim.TextureNode
float[] Bake (int size)
 Bakes the x axis of this node as a 1D image. More...
 
void Bake (float[] values)
 Bakes the x axis of this node as a 1D image. More...
 
void Bake (Color[] values)
 Bakes the x axis of this node as a 1D image. Note that the red channel is the most important. More...
 
override string ToString ()
 
string ToString (int depth)
 
List< Material > CollectMaterials ()
 
void CollectMaterials (List< Material > into)
 
void AddSource (TextureNode source)
 Adds a new source to this node. More...
 
 TextureNode ()
 
 TextureNode (int sourceCount)
 Create a texture node with the given number of inputs. More...
 
void SubMaterialChanged ()
 Called when this nodes SubMaterialID has changed. More...
 
virtual DrawStackNode Allocate (DrawInfo info, ref int stackID)
 Allocates GPU drawing meta now. More...
 
void PreAllocate (DrawInfo info)
 Allocates now. More...
 
void DrawGPU (DrawInfo info)
 Draws this node now (but doesn't transfer it into a texture). More...
 
void Draw (DrawInfo info, Texture2D image, ref Color[] pixels)
 Draws this node into the given texture and pixel buffer now. Note that the pixels buffer might not get used, so initially pass in null and cache the resulting one if you wish. More...
 
void DrawCPU (DrawInfo info, Color[] pixels)
 Draws this node using the CPU. More...
 
TextureNode GetLayer (int id, int count)
 Gets the node with the given ID. More...
 
virtual void Read (TextureReader reader)
 Reads sources from the given reader into this node. More...
 
virtual double GetValue (double t)
 Gets the 1D value from this node. Equiv to GetValue(t,0). Required for all graph nodes. More...
 

Properties

TextureNode RadiusX [get, set]
 Horizontal radius. More...
 
TextureNode RadiusY [get, set]
 Vertical radius. More...
 
TextureNode Method [get, set]
 The blur method to use. More...
 
BlurMethod BlurMethod [get]
 The blur method. More...
 
override int SubMaterialID [get]
 By default, materials are named Loonim/Texture_node_id, however some nodes have "sub-materials" where they essentially have a bunch of different shaders. An example is the Blend node. More...
 
override int TypeID [get]
 

Private Attributes

int Method_
 The blur method to use. More...
 
Color[] Buffer2
 

Additional Inherited Members

- Public Attributes inherited from Loonim.BitmapNode
double MapX
 Maps 0 to 1 x into 0 to (Width-1). More...
 
double MapY
 Maps 0 to 1 y into 0 to (Height-1). More...
 
int Width
 Raster width. More...
 
int Height
 Raster height. More...
 
Color[] Buffer
 The raw buffer. More...
 
BitmapNode NextToClear
 Linked list of modules to clear. More...
 
- Protected Member Functions inherited from Loonim.BitmapNode
void Setup (DrawInfo info)
 Sets up the buffer and mapX/mapY values (used in CPU mode). More...
 
- Static Protected Member Functions inherited from Loonim.TextureNode
static Shader GetShader (int type, int subType)
 Gets a shader of the given node ID and it's sub-type. More...
 
static Material GetMaterial (int type, int subType)
 Gets a sub-material of the given node ID. More...
 

Constructor & Destructor Documentation

Loonim.Blur.Blur ( )
inline
Loonim.Blur.Blur ( TextureNode  src,
TextureNode  rx,
TextureNode  ry,
TextureNode  method 
)
inline

Member Function Documentation

override void Loonim.Blur.Draw ( DrawInfo  info)
inlinevirtual

Allocates GPU drawing meta now.

Reimplemented from Loonim.TextureNode.

override void Loonim.Blur.Prepare ( DrawInfo  info)
inlinevirtual

Gets the node ready to draw.

Reimplemented from Loonim.TextureNode.

Member Data Documentation

Color [] Loonim.Blur.Buffer2
private
int Loonim.Blur.Method_
private

The blur method to use.

Property Documentation

BlurMethod Loonim.Blur.BlurMethod
get

The blur method.

TextureNode Loonim.Blur.Method
getset

The blur method to use.

TextureNode Loonim.Blur.RadiusX
getset

Horizontal radius.

TextureNode Loonim.Blur.RadiusY
getset

Vertical radius.

override int Loonim.Blur.SubMaterialID
get

By default, materials are named Loonim/Texture_node_id, however some nodes have "sub-materials" where they essentially have a bunch of different shaders. An example is the Blend node.

override int Loonim.Blur.TypeID
get