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

Method GetRandomConstant

trinity/Curves/Tr2CurveScalarExpression.cpp:224–234  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

222
223// --------------------------------------------------------------------------------
224float Tr2CurveScalarExpression::GetRandomConstant() const
225{
226 if( g_expressionCurveFakeRandom )
227 {
228 return 0.21f;
229 }
230 else
231 {
232 return m_randomConstant;
233 }
234}
235
236// --------------------------------------------------------------------------------
237void Tr2CurveScalarExpression::ResetRandomConstant()

Callers 3

FractalFunction · 0.45
NoiseFunction · 0.45
RandomConstantFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected