Renamed sigmoid GUI params

This commit is contained in:
Martin committed 2025-01-15 18:21:43 +01:00
1 parent 6085a77c66
commit 1b32469a69
6 files changed
+23 -14

No files matched your search

+2 -2
View File
@@ -7,12 +7,12 @@
__device__ float opacityFromGradient(const Vec3 &grad) {
float gradMag = grad.length();
float alpha = 1.0f - expf(-d_opacityK * gradMag); // TODO: This parameter probably has the wrong scale
float alpha = 1.0f - expf(-1 * gradMag); // TODO: This parameter probably has the wrong scale
return alpha;
}
__device__ float opacitySigmoid(float val) {
return 1.0f / (1.0f + expf(d_sigmoidTwo * (val - d_sigmoidOne)));
return 1.0f / (1.0f + expf(d_sigmoidExp * (val - d_sigmoidShift)));
}
__device__ Color3 colorMap(float normalizedValues, const ColorStop stops[], int N) {
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.