载入中...
搜索中...
未找到
eve::procgen::NoiseField3结构体 参考

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()

float eve::procgen::NoiseField3::fbmPerlin ( float  x,
float  y,
float  z,
int  octaves = 4,
float  lacunarity = 2.f,
float  gain = 0.5f 
) const

在文件 NoiseField.cpp 第 803 行定义.

引用了 gain, perlinNoise(), x, y , 以及 z.

被这些函数引用 perlinWorley().

◆ gyroid()

float eve::procgen::NoiseField3::gyroid ( float  x,
float  y,
float  z 
) const

在文件 NoiseField.cpp 第 841 行定义.

引用了 p, seed, x, y , 以及 z.

◆ gyroidFbm()

float eve::procgen::NoiseField3::gyroidFbm ( float  x,
float  y,
float  z,
int  octaves = 4 
) const

在文件 NoiseField.cpp 第 846 行定义.

引用了 a, result, seed, x, y , 以及 z.

◆ 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

在文件 NoiseField.cpp 第 635 行定义.

引用了 dx, dy, dz, g, h, hash01(), n, px, py, pz, x, y , 以及 z.

被这些函数引用 fbmPerlin().

◆ 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 行定义.

引用了 gain, n, valueNoise(), x, y , 以及 z.

◆ simplexNoise()

float eve::procgen::NoiseField3::simplexNoise ( float  x,
float  y,
float  z 
) const

在文件 NoiseField.cpp 第 673 行定义.

引用了 g, h, hash01(), i1, i2, n, px, py, pz, s, t, x, y , 以及 z.

◆ valueNoise()

float eve::procgen::NoiseField3::valueNoise ( float  x,
float  y,
float  z 
) const

在文件 NoiseField.cpp 第 609 行定义.

引用了 hash01(), x, y , 以及 z.

被这些函数引用 billow(), fbm() , 以及 ridged().

◆ 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

在文件 NoiseField.cpp 第 765 行定义.

引用了 cx, cy, hash01(), px, py, pz, x, y , 以及 z.

被这些函数引用 worleyNoise().

◆ worleyNoise()

float eve::procgen::NoiseField3::worleyNoise ( float  x,
float  y,
float  z,
float  jitter = 1.f,
WorleyMetric  metric = WorleyMetric::Euclidean 
) const

在文件 NoiseField.cpp 第 787 行定义.

引用了 worleyF1(), x, y , 以及 z.

被这些函数引用 perlinWorley().

类成员变量说明

◆ 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().


该结构体的文档由以下文件生成: