Fix a GLSL compile error on Mac
(doesn't like #elif it seems). Since neither of these values are ever defined, kill off the conditionals entirely.
This commit is contained in:
parent
040310bd8b
commit
105983702f
3 changed files with 0 additions and 23 deletions
|
@ -82,13 +82,6 @@ void QDM(inout vec3 p, inout vec3 v)
|
|||
|
||||
level++;
|
||||
|
||||
//use additional convergence speed-up
|
||||
#ifdef USE_QDM_ASCEND_INTERVAL
|
||||
if(frac(level*0.5) > EPSILON)
|
||||
level++;
|
||||
#elseif USE_QDM_ASCEND_CONST
|
||||
level++;
|
||||
#endif
|
||||
}
|
||||
p2 = p + v * d;
|
||||
}
|
||||
|
|
|
@ -228,14 +228,6 @@ void QDM(inout vec3 p, inout vec3 v)
|
|||
d = min(d,min(dNC.x, dNC.y))+fDeltaNC;
|
||||
|
||||
level++;
|
||||
|
||||
//use additional convergence speed-up
|
||||
#ifdef USE_QDM_ASCEND_INTERVAL
|
||||
if(frac(level*0.5) > EPSILON)
|
||||
level++;
|
||||
#elseif USE_QDM_ASCEND_CONST
|
||||
level++;
|
||||
#endif
|
||||
}
|
||||
p2 = p + v * d;
|
||||
}
|
||||
|
|
|
@ -85,14 +85,6 @@ void QDM(inout vec3 p, inout vec3 v)
|
|||
d = min(d,min(dNC.x, dNC.y))+fDeltaNC;
|
||||
|
||||
level++;
|
||||
|
||||
//use additional convergence speed-up
|
||||
#ifdef USE_QDM_ASCEND_INTERVAL
|
||||
if(frac(level*0.5) > EPSILON)
|
||||
level++;
|
||||
#elif USE_QDM_ASCEND_CONST
|
||||
level++;
|
||||
#endif
|
||||
}
|
||||
p2 = p + v * d;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue