Include dependency graph for noise.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Classes | |
| class | PseudoRandom |
| class | PcgRandom |
| struct | NoiseParams |
| class | Noise |
Macros | |
| #define | NOISE_FLAG_DEFAULTS 0x01 |
| #define | NOISE_FLAG_EASED 0x02 |
| #define | NOISE_FLAG_ABSVALUE 0x04 |
| #define | NOISE_FLAG_POINTBUFFER 0x08 |
| #define | NOISE_FLAG_SIMPLEX 0x10 |
Functions | |
| float | NoiseFractal2D (const NoiseParams *np, float x, float y, s32 seed) |
| float | NoiseFractal3D (const NoiseParams *np, float x, float y, float z, s32 seed) |
| float | NoiseFractal2D_PO (NoiseParams *np, float x, float xoff, float y, float yoff, s32 seed) |
| float | NoiseFractal3D_PO (NoiseParams *np, float x, float xoff, float y, float yoff, float z, float zoff, s32 seed) |
| float | noise2d (int x, int y, s32 seed) |
| float | noise3d (int x, int y, int z, s32 seed) |
| float | noise2d_value (float x, float y, s32 seed, bool eased=true) |
| float | noise3d_value (float x, float y, float z, s32 seed, bool eased=false) |
| float | noise2d_fractal (float x, float y, s32 seed, int octaves, float persistence, bool eased=true) |
| float | easeCurve (float t) |
| float | contour (float v) |
Variables | |
| const FlagDesc | flagdesc_noiseparams [] |
| #define NOISE_FLAG_ABSVALUE 0x04 |
Referenced by NoiseFractal2D(), NoiseFractal3D(), and Noise::updateResults().
| #define NOISE_FLAG_DEFAULTS 0x01 |
Referenced by Settings::getNoiseParamsFromGroup(), NoiseFractal2D(), read_noiseparams(), and Noise::valueMap2D().
| #define NOISE_FLAG_EASED 0x02 |
| #define NOISE_FLAG_POINTBUFFER 0x08 |
| #define NOISE_FLAG_SIMPLEX 0x10 |
| float contour | ( | float | v | ) |
Referenced by OreVein::generate(), and CavesNoiseIntersection::generateCaves().
Here is the caller graph for this function:
|
inline |
Referenced by biLinearInterpolation(), Sky::render(), triLinearInterpolation(), and Camera::update().
Here is the caller graph for this function:| float noise2d | ( | int | x, |
| int | y, | ||
| s32 | seed ) |
References NOISE_MAGIC_SEED, NOISE_MAGIC_X, NOISE_MAGIC_Y, x, and y.
Referenced by MapgenV6::getBiome(), noise2d_value(), TestNoise::testNoise2dAtOriginWithZeroSeed(), TestNoise::testNoise2dWithFunPrimes(), TestNoise::testNoise2dWithMaxSeed(), TestNoise::testNoise3dAtOriginWithZeroSeed(), TestNoise::testNoise3dWithFunPrimes(), and Noise::valueMap2D().
Here is the caller graph for this function:| float noise2d_fractal | ( | float | x, |
| float | y, | ||
| s32 | seed, | ||
| int | octaves, | ||
| float | persistence, | ||
| bool | eased = true ) |
References noise2d_value(), x, and y.
Referenced by Clouds::gridFilled().
Here is the call graph for this function:
Here is the caller graph for this function:| float noise2d_value | ( | float | x, |
| float | y, | ||
| s32 | seed, | ||
| bool | eased = true ) |
References biLinearInterpolation(), myfloor, noise2d(), x, and y.
Referenced by noise2d_fractal(), and NoiseFractal2D().
Here is the call graph for this function:
Here is the caller graph for this function:| float noise3d | ( | int | x, |
| int | y, | ||
| int | z, | ||
| s32 | seed ) |
References NOISE_MAGIC_SEED, NOISE_MAGIC_X, NOISE_MAGIC_Y, NOISE_MAGIC_Z, x, y, and z.
Referenced by noise3d_value(), TestNoise::testNoise3dWithMaxSeed(), and Noise::valueMap3D().
Here is the caller graph for this function:| float noise3d_value | ( | float | x, |
| float | y, | ||
| float | z, | ||
| s32 | seed, | ||
| bool | eased = false ) |
References myfloor, noise3d(), triLinearInterpolation(), x, y, and z.
Referenced by NoiseFractal3D().
Here is the call graph for this function:
Here is the caller graph for this function:| float NoiseFractal2D | ( | const NoiseParams * | np, |
| float | x, | ||
| float | y, | ||
| s32 | seed ) |
References NoiseParams::flags, NoiseParams::lacunarity, noise2d_value(), NOISE_FLAG_ABSVALUE, NOISE_FLAG_DEFAULTS, NOISE_FLAG_EASED, NoiseParams::octaves, NoiseParams::offset, NoiseParams::persist, NoiseParams::scale, NoiseParams::seed, NoiseParams::spread, x, and y.
Referenced by MapgenV7::baseTerrainLevelAtPoint(), BiomeGenOriginal::calcHeatAtPoint(), BiomeGenOriginal::calcHumidityAtPoint(), MapgenV6::generateCaves(), MapgenV6::getHaveAppleTree(), MapgenV7::getMountainTerrainAtPoint(), MapgenCarpathian::getSpawnLevelAtPoint(), MapgenFlat::getSpawnLevelAtPoint(), MapgenFractal::getSpawnLevelAtPoint(), MapgenV5::getSpawnLevelAtPoint(), MapgenV7::getSpawnLevelAtPoint(), MapgenValleys::getSpawnLevelAtPoint(), MapgenV6::getTreeAmount(), LuaValueNoise::l_get_2d(), NoiseFractal2D_PO(), Decoration::placeDeco(), and TestNoise::testNoise2dPoint().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
References NoiseFractal2D(), NoiseParams::spread, x, and y.
Referenced by MapgenV6::baseTerrainLevelFromNoise().
Here is the call graph for this function:
Here is the caller graph for this function:| float NoiseFractal3D | ( | const NoiseParams * | np, |
| float | x, | ||
| float | y, | ||
| float | z, | ||
| s32 | seed ) |
References NoiseParams::flags, NoiseParams::lacunarity, noise3d_value(), NOISE_FLAG_ABSVALUE, NOISE_FLAG_EASED, NoiseParams::octaves, NoiseParams::offset, NoiseParams::persist, NoiseParams::scale, NoiseParams::seed, NoiseParams::spread, x, y, and z.
Referenced by CavesRandomWalk::carveRoute(), DungeonGen::generate(), OreScatter::generate(), MapgenBasic::generateDungeons(), MapgenV7::getMountainTerrainAtPoint(), MapgenCarpathian::getSpawnLevelAtPoint(), MapgenV5::getSpawnLevelAtPoint(), MapgenValleys::getSpawnLevelAtPoint(), LuaValueNoise::l_get_3d(), MapgenV6::makeChunk(), NoiseFractal3D_PO(), and TestNoise::testNoise3dPoint().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
References NoiseFractal3D(), NoiseParams::spread, x, y, and z.
Here is the call graph for this function:
|
extern |
Referenced by Settings::getNoiseParamsFromGroup(), push_noiseparams(), read_noiseparams(), and Settings::setNoiseParams().