Texture Toolkit  0.1
Unity Texture Editor and Generator
Static Public Member Functions | List of all members
texturetk.TextureGen Class Reference

Static Public Member Functions

static Texture2D marble (int w=512, int h=512, float xPeriod=5f, float yPeriod=10f, float turbPower=300f, float turbSize=32f)
 Procedural Marble Texture More...
 
static Texture2D wood (int w=512, int h=512, float xyPeriod=12f, float turbPower=0.1f, float turbSize=32f)
 Procedural Wood Texture More...
 
static Texture2D clouds (int w=512, int h=512, float size=64f)
 Procedural Cloud Texture More...
 
static Texture2D xor (int w=512, int h=512)
 Procedural XOR (tiled) Texture More...
 

Member Function Documentation

static Texture2D texturetk.TextureGen.clouds ( int  w = 512,
int  h = 512,
float  size = 64f 
)
static

Procedural Cloud Texture

Parameters
wPixel width of texture
hPixel height of texture
sizeLower values are grittier, higher values are smoother
Returns
Returns a Texture2D
static Texture2D texturetk.TextureGen.marble ( int  w = 512,
int  h = 512,
float  xPeriod = 5f,
float  yPeriod = 10f,
float  turbPower = 300f,
float  turbSize = 32f 
)
static

Procedural Marble Texture

Parameters
wPixel width of texture
hPixel height of texture
xPerioddefines repetition of marble lines in x direction (Default 5)
yPerioddefines repetition of marble lines in y direction (Default 10)
turbPowerMakes twists (Default 0.1)
turbSizeInitial size of the turbulence (Default 32)

xPeriod and yPeriod together define the angle of the lines xPeriod and yPeriod both 0 ==> it becomes a normal clouds or turbulence pattern turbPower = 0 ==> it becomes a normal sine pattern

Returns
Returns a Texture2D
static Texture2D texturetk.TextureGen.wood ( int  w = 512,
int  h = 512,
float  xyPeriod = 12f,
float  turbPower = 0.1f,
float  turbSize = 32f 
)
static

Procedural Wood Texture

Parameters
wPixel width of texture
hPixel height of texture
xyPeriodnumber of rings (Default 12)
turbPowerMakes twists (Default 0.1)
turbSizeInitial size of the turbulence (Default 32)
Returns
Returns a Texture2D
static Texture2D texturetk.TextureGen.xor ( int  w = 512,
int  h = 512 
)
static

Procedural XOR (tiled) Texture

Parameters
wPixel width of texture
hPixel height of texture

The texture will look best when the w and h parameters are powers of two.

Returns
Returns a Texture2D

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