Added silhoutte gui control

This commit is contained in:
Martin committed 2025-01-15 20:31:40 +01:00
1 parent b4c7d3a7a5
commit d5df4ea188
5 files changed
+15 -1

No files matched your search

+1 -1
View File
@@ -106,7 +106,7 @@ __device__ float4 transferFunction(float density, const Vec3& grad, const Point3
// --------------------------- Silhouettes ---------------------------
Vec3 N = grad.normalize();
if (grad.length() > 0.2f && fabs(N.dot(viewDir)) < 0.02f) {
if (d_showSilhouettes && grad.length() > 0.2f && fabs(N.dot(viewDir)) < d_silhouettesThreshold) {
result.x = 0.0f;
result.y = 0.0f;
result.z = 0.0f;
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.