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

Function Fractal

trinity/Curves/Tr2CurveScalarExpression.cpp:19–22  ·  view source on GitHub ↗

--------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

17
18// --------------------------------------------------------------------------------
19float Fractal( const Tr2CurveScalarExpression* curve, float x, float alpha, float beta, float n )
20{
21 return float( ( PerlinNoise1D( x + curve->GetRandomConstant(), alpha, beta, int( n + 0.5f ) ) + 1.0 ) / 2.0 );
22}
23
24// --------------------------------------------------------------------------------
25float Noise( const Tr2CurveScalarExpression* curve, float x )

Callers

nothing calls this directly

Calls 2

PerlinNoise1DFunction · 0.85
GetRandomConstantMethod · 0.45

Tested by

no test coverage detected