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

Function perlin_wrap_simple

trinity/Curves/Tr2ScalarExprKeyCurve.cpp:31–34  ·  view source on GitHub ↗

-------------------------------------------------------------------------------------- Description: A wrapper for Perlin noise 3 octave fractal sum function to pass to muParser. Arguments: x - agument for function Return Value: Perlin fractal sum --------------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

29// Perlin fractal sum
30// --------------------------------------------------------------------------------------
31static float perlin_wrap_simple( float x )
32{
33 return (float)( ( PerlinNoise1D( x, 1.1, 2.0, (int)3 ) + 1.0 ) * 0.5 );
34}
35
36// --------------------------------------------------------------------------------------
37// Description:

Callers

nothing calls this directly

Calls 1

PerlinNoise1DFunction · 0.85

Tested by

no test coverage detected