Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
271
float InverseGaussianSampleDisk(float u1) {
272
return Clamp(1.f - normsinvf(u1), 0.f, 1.f);
273
}
274
275
float ExponentialSampleDisk(float u1, int power) {
276
return Clamp(-logf(u1) / power, 0.f, 1.f);
Callers
nothing calls this directly
Calls
2
normsinvf
Function · 0.85
Clamp
Function · 0.50
Tested by
no test coverage detected