Renamed sigmoid GUI params

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

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) {