Inheritance diagram for Loonim.Voronoi:
Loonim.TextureNode

Public Member Functions

 Voronoi ()
 
override DrawStackNode Allocate (DrawInfo info, ref int stackID)
 Allocates GPU drawing meta now. More...
 
override void Prepare (DrawInfo info)
 Gets the node ready to draw. More...
 
override void Draw (DrawInfo info)
 Allocates GPU drawing meta now. 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...
 
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...
 
virtual UnityEngine.Color GetColour (double x, double y)
 Gets this nodes colour output. More...
 

Public Attributes

int Seed
 
- Public Attributes inherited from Loonim.TextureNode
int InstanceID
 Unique ID for this node in its parent tree. More...
 
TextureNode[] Sources
 Inputs to this node. May be null. More...
 
bool AllocateRequired =true
 True when this node changes. Note that it does not get set to true if the image draw size changes. More...
 
DrawStackNode DrawStore
 

Properties

TextureNode Frequency [get, set]
 
TextureNode MinkowskiNumber [get, set]
 Minkowski number. More...
 
TextureNode DrawMode [get, set]
 The draw mode (Maps to VoronoiDraw) More...
 
TextureNode Distance [get, set]
 The Voronoi noise distance function (Maps to VoronoiDistance). More...
 
TextureNode Method [get, set]
 The Voronoi function to use (Maps to VoronoiMethod). More...
 
TextureNode Jitter [get, set]
 The jitter amount (affects how distorted it is). More...
 
TextureNode Function [get, set]
 The function to use. E.g. F1, F2-F1. More...
 
override int OutputDimensions [get]
 
Vector4 DataVector [get]
 The special _Data vector used by the noise group of materials. 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]
 
- Properties inherited from Loonim.TextureNode
TextureNode SourceModule [get, set]
 First input to this node. Errors if it doesn't exist. More...
 
TextureNode SourceModule1 [get, set]
 First input to this node. Errors if it doesn't exist. More...
 
TextureNode SourceModule2 [get, set]
 Second input to this node. Errors if it doesn't exist. More...
 
TextureNode SourceModule3 [get, set]
 Third input to this node. Errors if it doesn't exist. More...
 
virtual 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...
 
virtual int MaterialID [get]
 By default, materials are named Loonim/Texture_node_id. This allows nodes to essentially share shaders. More...
 
virtual int OutputDimensions [get]
 The dimensions of the image that gets output from this node. A constant has 0 dimensions, a graph has 1 dimension and your ordinary image node has 2. Note that they vary based on inputs; for example an ADD node could add two graphs together (resulting in a 1D output) or it could add two images together (2D output). More...
 
virtual int TypeID [get]
 A globally constant ID for a given type of module. More...
 

Private Attributes

int MaterialID_
 
double[] DistanceBuffer
 A shared buffer used for computing the n required nodes. More...
 

Additional Inherited Members

- Protected Member Functions inherited from Loonim.TextureNode
void AllocateSources (Material material, DrawInfo info, int targetStack, int count)
 
- 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.Voronoi.Voronoi ( )
inline

Member Function Documentation

override DrawStackNode Loonim.Voronoi.Allocate ( DrawInfo  info,
ref int  stackID 
)
inlinevirtual

Allocates GPU drawing meta now.

Reimplemented from Loonim.TextureNode.

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

Allocates GPU drawing meta now.

Reimplemented from Loonim.TextureNode.

override double Loonim.Voronoi.GetValue ( double  x,
double  y,
double  z 
)
inlinevirtual

Gets the value from this node. This is required at a minimum. Range of +/- 1.

Reimplemented from Loonim.TextureNode.

override double Loonim.Voronoi.GetValue ( double  x,
double  y 
)
inlinevirtual

Gets the value from this node. This is required at a minimum. Range of +/- 1.

Reimplemented from Loonim.TextureNode.

override double Loonim.Voronoi.GetWrapped ( double  x,
double  y,
int  wrap 
)
inlinevirtual

Gets a wrapped value from this node. Range of +/- 1.

Reimplemented from Loonim.TextureNode.

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

Gets the node ready to draw.

Reimplemented from Loonim.TextureNode.

Member Data Documentation

double [] Loonim.Voronoi.DistanceBuffer
private

A shared buffer used for computing the n required nodes.

int Loonim.Voronoi.MaterialID_
private
int Loonim.Voronoi.Seed

Property Documentation

Vector4 Loonim.Voronoi.DataVector
getprivate

The special _Data vector used by the noise group of materials.

TextureNode Loonim.Voronoi.Distance
getset

The Voronoi noise distance function (Maps to VoronoiDistance).

TextureNode Loonim.Voronoi.DrawMode
getset

The draw mode (Maps to VoronoiDraw)

TextureNode Loonim.Voronoi.Frequency
getset
TextureNode Loonim.Voronoi.Function
getset

The function to use. E.g. F1, F2-F1.

TextureNode Loonim.Voronoi.Jitter
getset

The jitter amount (affects how distorted it is).

TextureNode Loonim.Voronoi.Method
getsetprivate

The Voronoi function to use (Maps to VoronoiMethod).

TextureNode Loonim.Voronoi.MinkowskiNumber
getset

Minkowski number.

override int Loonim.Voronoi.OutputDimensions
getpackage
override int Loonim.Voronoi.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.Voronoi.TypeID
get