MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / Get

Method Get

ogsr_engine/xr_3da/perlin.cpp:76–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74}
75
76float CPerlinNoise1D::Get(float v)
77{
78 float result = 0.0f;
79 float amp = mAmplitude;
80 v *= mFrequency;
81 for (int i = 0; i < mOctaves; i++)
82 {
83 result += noise(v) * amp;
84 v *= 2.0f;
85 amp *= 0.5f;
86 }
87 return result;
88}
89
90float CPerlinNoise1D::GetContinious(float v)
91{

Callers 9

occq_beginMethod · 0.45
occq_endMethod · 0.45
occq_getMethod · 0.45
occq_freeMethod · 0.45
CreateMethod · 0.45
ScreenshotImplMethod · 0.45
PIXEventsBeginRenderingFunction · 0.45
PIXEventsPushEventFunction · 0.45
PIXEventsPopEventFunction · 0.45

Calls 1

noiseFunction · 0.85

Tested by

no test coverage detected