mirror of
https://github.com/lucaspalomodevelop/meshlab.git
synced 2026-03-19 02:54:36 +00:00
Added a return on the default control path of the function isFalseIntersection (sdf shader).
This commit is contained in:
parent
e15e93fe88
commit
9cd4c02438
@ -87,6 +87,7 @@ bool isFalseIntersection(vec3 P, vec3 objSpaceNormal)
|
||||
//if angles dont differ at least 90 degrees reject intersection
|
||||
if(dot(intersectionNormal, objSpaceNormal) > 0.0) return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
//Based on the paper "Dynamic Parallax Occlusion Mapping with Approximate Soft Shadows" Natalya Tatarchuk ATI Research, Inc.
|
||||
@ -191,7 +192,7 @@ float calculateSdf(vec3 P, vec3 objSpacePos, vec3 objSpaceNormal)
|
||||
if(removeFalse==1)
|
||||
if( isFalseIntersection(P,objSpaceNormal) ) return 0.0;
|
||||
|
||||
if( sdf != 0.0 && removeOutliers == 1)
|
||||
/*if( sdf != 0.0 && removeOutliers == 1)
|
||||
{
|
||||
|
||||
|
||||
@ -223,7 +224,7 @@ float calculateSdf(vec3 P, vec3 objSpacePos, vec3 objSpaceNormal)
|
||||
sdf = _vals[i+median];
|
||||
|
||||
|
||||
}
|
||||
} */
|
||||
|
||||
|
||||
return sdf;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user