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

Function Noise

trinity/Curves/Tr2CurveScalarExpression.cpp:25–28  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

23
24// --------------------------------------------------------------------------------
25float Noise( const Tr2CurveScalarExpression* curve, float x )
26{
27 return float( ( PerlinNoise1D( x + curve->GetRandomConstant(), 1.0, 1.0, 1 ) + 1.0 ) / 2.0 );
28}
29
30// --------------------------------------------------------------------------------
31float RandomConstant( const Tr2CurveScalarExpression* curve, float a, float b )

Callers

nothing calls this directly

Calls 2

PerlinNoise1DFunction · 0.85
GetRandomConstantMethod · 0.45

Tested by

no test coverage detected