誤植
Errata for 1st version( 2022/09/13 ).
P.50 Equation (3.3)
->
P.51 left differential coefficient
->
P.51 derived function
->
P.52 second derived function
->
P.131 コード 9.3
This is not strictly a typo but if you want to conform to the text, this expression might be better.
float smin(float a, float b, float k){
float h = clamp(0.5 + 0.5 * (b - a) / k, 0.0, 1.0);
return mix(b, a, h) - k * h * (1.0 - h);
}
->
float smin(float a, float b, float k){
float h = clamp(0.5 - 0.5 * (b - a) / k, 0.0, 1.0);
return mix(a, b, h) - k * h * (1.0 - h);
}