Deterministic 3D noise helpers for volumes / density fields. When period* > 0, lattice indices wrap for seamless tiling. 更多...
#include <NoiseField.h>
Public 成员函数 | |
| float | hash01 (int ix, int iy, int iz) const |
| float | whiteNoise (int ix, int iy, int iz) const |
| float | valueNoise (float x, float y, float z) const |
| float | perlinNoise (float x, float y, float z) const |
| float | simplexNoise (float x, float y, float z) const |
| float | worleyF1 (float x, float y, float z, float jitter=1.f, WorleyMetric metric=WorleyMetric::Euclidean) const |
| float | worleyNoise (float x, float y, float z, float jitter=1.f, WorleyMetric metric=WorleyMetric::Euclidean) const |
| float | fbm (float x, float y, float z, int octaves=4, float lacunarity=2.f, float gain=0.5f) const |
| float | fbmPerlin (float x, float y, float z, int octaves=4, float lacunarity=2.f, float gain=0.5f) const |
| float | ridged (float x, float y, float z, int octaves=4, float lacunarity=2.f, float gain=0.5f) const |
| float | billow (float x, float y, float z, int octaves=4, float lacunarity=2.f, float gain=0.5f) const |
| float | gyroid (float x, float y, float z) const |
| float | gyroidFbm (float x, float y, float z, int octaves=4) const |
| float | perlinWorley (float x, float y, float z, int octaves=3, float jitter=1.f) const |
Public 属性 | |
| uint32_t | seed = 1 |
| int | periodX = 0 |
| int | periodY = 0 |
| int | periodZ = 0 |
详细描述
Deterministic 3D noise helpers for volumes / density fields. When period* > 0, lattice indices wrap for seamless tiling.
在文件 NoiseField.h 第 216 行定义.
成员函数说明
◆ billow()
| float eve::procgen::NoiseField3::billow | ( | float | x, |
| float | y, | ||
| float | z, | ||
| int | octaves = 4, |
||
| float | lacunarity = 2.f, |
||
| float | gain = 0.5f |
||
| ) | const |
在文件 NoiseField.cpp 第 829 行定义.
引用了 gain, valueNoise(), x, y , 以及 z.
◆ fbm()
| float eve::procgen::NoiseField3::fbm | ( | float | x, |
| float | y, | ||
| float | z, | ||
| int | octaves = 4, |
||
| float | lacunarity = 2.f, |
||
| float | gain = 0.5f |
||
| ) | const |
在文件 NoiseField.cpp 第 791 行定义.
引用了 gain, valueNoise(), x, y , 以及 z.
◆ fbmPerlin()
◆ gyroid()
| float eve::procgen::NoiseField3::gyroid | ( | float | x, |
| float | y, | ||
| float | z | ||
| ) | const |
◆ gyroidFbm()
| float eve::procgen::NoiseField3::gyroidFbm | ( | float | x, |
| float | y, | ||
| float | z, | ||
| int | octaves = 4 |
||
| ) | const |
◆ hash01()
| float eve::procgen::NoiseField3::hash01 | ( | int | ix, |
| int | iy, | ||
| int | iz | ||
| ) | const |
在文件 NoiseField.cpp 第 594 行定义.
引用了 h, periodX, periodY, periodZ , 以及 seed.
被这些函数引用 perlinNoise(), simplexNoise(), valueNoise(), whiteNoise() , 以及 worleyF1().
◆ perlinNoise()
| float eve::procgen::NoiseField3::perlinNoise | ( | float | x, |
| float | y, | ||
| float | z | ||
| ) | const |
◆ perlinWorley()
| float eve::procgen::NoiseField3::perlinWorley | ( | float | x, |
| float | y, | ||
| float | z, | ||
| int | octaves = 3, |
||
| float | jitter = 1.f |
||
| ) | const |
在文件 NoiseField.cpp 第 862 行定义.
引用了 fbmPerlin(), worleyNoise(), x, y , 以及 z.
◆ ridged()
| float eve::procgen::NoiseField3::ridged | ( | float | x, |
| float | y, | ||
| float | z, | ||
| int | octaves = 4, |
||
| float | lacunarity = 2.f, |
||
| float | gain = 0.5f |
||
| ) | const |
在文件 NoiseField.cpp 第 815 行定义.
◆ simplexNoise()
| float eve::procgen::NoiseField3::simplexNoise | ( | float | x, |
| float | y, | ||
| float | z | ||
| ) | const |
◆ valueNoise()
| float eve::procgen::NoiseField3::valueNoise | ( | float | x, |
| float | y, | ||
| float | z | ||
| ) | const |
◆ whiteNoise()
| float eve::procgen::NoiseField3::whiteNoise | ( | int | ix, |
| int | iy, | ||
| int | iz | ||
| ) | const |
在文件 NoiseField.cpp 第 607 行定义.
引用了 hash01().
◆ worleyF1()
| float eve::procgen::NoiseField3::worleyF1 | ( | float | x, |
| float | y, | ||
| float | z, | ||
| float | jitter = 1.f, |
||
| WorleyMetric | metric = WorleyMetric::Euclidean |
||
| ) | const |
◆ worleyNoise()
| float eve::procgen::NoiseField3::worleyNoise | ( | float | x, |
| float | y, | ||
| float | z, | ||
| float | jitter = 1.f, |
||
| WorleyMetric | metric = WorleyMetric::Euclidean |
||
| ) | const |
类成员变量说明
◆ periodX
| int eve::procgen::NoiseField3::periodX = 0 |
在文件 NoiseField.h 第 218 行定义.
被这些函数引用 hash01().
◆ periodY
| int eve::procgen::NoiseField3::periodY = 0 |
在文件 NoiseField.h 第 219 行定义.
被这些函数引用 hash01().
◆ periodZ
| int eve::procgen::NoiseField3::periodZ = 0 |
在文件 NoiseField.h 第 220 行定义.
被这些函数引用 hash01().
◆ seed
| uint32_t eve::procgen::NoiseField3::seed = 1 |
在文件 NoiseField.h 第 217 行定义.
被这些函数引用 gyroid(), gyroidFbm() , 以及 hash01().
该结构体的文档由以下文件生成:
- src/modules/procgen/texture/NoiseField.h
- src/modules/procgen/texture/NoiseField.cpp