Features are the main functions you can use in your terrainMap fonction (inside your input file) without any import.
Function Name | Full Name | Short description |
---|---|---|
fbm_gradient | Fractal gradient | Compute fractalized gradient |
fbm_voronoi | Fractal voronoi | Compute fractalized voronoi |
phasor | Phasor noise height map | Compute phasor noise hight map |
plateau | Plateau | Flatten the terrain with smooth transition |
valley | Valley | Flatten the terrain with smooth transition on the bottom |
Utils are the functions used to develop features.
Function Name | Full Name | Short description |
---|---|---|
gradient | Gradient noise | Compute gradient noise |
rand2 | Hash 2D | A 2D hash function |
rand3 | Hash 3D | A 3D hash function |
voronoi | Voronoi noise | Compute voronoi noise |
Templates are a way to get different kind of output.
The tag is what you have to write in the input to choose which template to use for the output
Name | Tag | Description |
---|---|---|
Classic shader | classic_shader | Default fragment shader. Can be used with the python viewer script (in the output dir) to display it. |
Fancy shader | fancy_shader | Fancy fragment shader used to render. Can be used with the python viewer script (in the output dir) to display it. |
Heightmap | heightmap | Template used to display the noise computed as an heightmap. Can be used with the python viewer script (in the output dir) to display it. |
Shadertoy | shadertoy | Same shader as classic_shader, but can be copy and past in shadertoy. |