-------------------------------------------------------------------------------------- Description: A wrapper for Perlin noise fractal sum function to pass to muParser. Arguments: x - agument for function a - octave scale multiplier b - octave frequency multiplier n - number of octaves Return Value: Perlin fractal sum --------------------------------------------------------------------------------
| 16 | // Perlin fractal sum |
| 17 | // -------------------------------------------------------------------------------------- |
| 18 | static float perlin_wrap( float x, float a, float b, float n ) |
| 19 | { |
| 20 | return (float)( ( PerlinNoise1D( x, a, b, (int)n ) + 1.0 ) * 0.5 ); |
| 21 | } |
| 22 | |
| 23 | // -------------------------------------------------------------------------------------- |
| 24 | // Description: |
nothing calls this directly
no test coverage detected