MCPcopy Create free account
hub / github.com/carbonengine/trinity / PerlinNoise1D

Function PerlinNoise1D

trinity/TriMath.cpp:1063–1067  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1061}
1062
1063double PerlinNoise1D( double x, double invAmplitude, double frequency, int octaves )
1064{
1065 static TriPerlinNoise noise{ 0 }; // fixed seed: reproducible across runs (matches legacy)
1066 return noise.FractalSum( x, size_t( std::max( 0, octaves ) ), 1.0 / invAmplitude, frequency );
1067}
1068
1069
1070bool ConvertProjectionCoordToWorldPickRay( float x, float y, const Matrix* projMat, const Matrix* viewMat, Vector3* rayStart, Vector3* rayDir )

Callers 15

InitializeTrinityFunction · 0.85
GetValueAtMethod · 0.85
AsPerPointLightDataMethod · 0.85
GetLightMethod · 0.85
FractalFunction · 0.85
NoiseFunction · 0.85
FractalFunction · 0.85
NoiseFunction · 0.85
perlin_wrapFunction · 0.85
perlin_wrap_simpleFunction · 0.85
FractalFunction · 0.85
NoiseFunction · 0.85

Calls 1

FractalSumMethod · 0.80

Tested by

no test coverage detected