|
| 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...
|
| |
| static Texture2D texturetk.TextureGen.clouds |
( |
int |
w = 512, |
|
|
int |
h = 512, |
|
|
float |
size = 64f |
|
) |
| |
|
static |
Procedural Cloud Texture
- Parameters
-
| w | Pixel width of texture |
| h | Pixel height of texture |
| size | Lower 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
-
| w | Pixel width of texture |
| h | Pixel height of texture |
| xPeriod | defines repetition of marble lines in x direction (Default 5) |
| yPeriod | defines repetition of marble lines in y direction (Default 10) |
| turbPower | Makes twists (Default 0.1) |
| turbSize | Initial 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
-
| w | Pixel width of texture |
| h | Pixel height of texture |
| xyPeriod | number of rings (Default 12) |
| turbPower | Makes twists (Default 0.1) |
| turbSize | Initial 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
-
| w | Pixel width of texture |
| h | Pixel 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: