Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
267
float GaussianSampleDisk(float u1) {
268
return Clamp(normsinvf(u1), 0.f, 1.f);
269
}
270
271
float InverseGaussianSampleDisk(float u1) {
272
return Clamp(1.f - normsinvf(u1), 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