MCPcopy Create free account
hub / github.com/LuxCoreRender/LuxCore / InverseGaussianSampleDisk

Function InverseGaussianSampleDisk

src/luxrays/utils/mc.cpp:271–273  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

269}
270
271float InverseGaussianSampleDisk(float u1) {
272 return Clamp(1.f - normsinvf(u1), 0.f, 1.f);
273}
274
275float ExponentialSampleDisk(float u1, int power) {
276 return Clamp(-logf(u1) / power, 0.f, 1.f);

Callers

nothing calls this directly

Calls 2

normsinvfFunction · 0.85
ClampFunction · 0.50

Tested by

no test coverage detected