mirror of
https://github.com/MartinOpat/cuda-based-raytrace.git
synced 2025-06-07 02:13:10 +02:00
Added silhoutte gui control
This commit is contained in:
1 parent
b4c7d3a7a5
commit
d5df4ea188
5 files changed
+15
-1
No files matched your search
@@ -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;
|
||||
|
||||