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

Function GaussianSampleDisk

src/luxrays/utils/mc.cpp:267–269  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

265}
266
267float GaussianSampleDisk(float u1) {
268 return Clamp(normsinvf(u1), 0.f, 1.f);
269}
270
271float InverseGaussianSampleDisk(float u1) {
272 return Clamp(1.f - normsinvf(u1), 0.f, 1.f);

Callers

nothing calls this directly

Calls 2

normsinvfFunction · 0.85
ClampFunction · 0.50

Tested by

no test coverage detected