alpha = Utils.sCurve3((controlValue - lowerCurve) / (upperCurve - lowerCurve)); return Utils.linearInterp(sourceModule[0].getValue(x, y, z), sourceModule[1].getValue(x, y, z), alpha); } else if (controlValue < (upperBound - edgeFalloff)) { alpha = Utils.sCurve3((controlValue - lowerCurve) / (upperCurve - lowerCurve)); return Utils.linearInterp(sourceModule[1].getValue(x, y, z), sourceModule[0].getValue(x, y, z), alpha); } else {
alpha = Utils.sCurve3((controlValue - lowerCurve) / (upperCurve - lowerCurve)); return Utils.linearInterp(sourceModule[0].getValue(x, y, z), sourceModule[1].getValue(x, y, z), alpha); } else if (controlValue < (upperBound - edgeFalloff)) { alpha = Utils.sCurve3((controlValue - lowerCurve) / (upperCurve - lowerCurve)); return Utils.linearInterp(sourceModule[1].getValue(x, y, z), sourceModule[0].getValue(x, y, z), alpha); } else {
alpha = Utils.sCurve3((controlValue - lowerCurve) / (upperCurve - lowerCurve)); return Utils.linearInterp(sourceModule[0].getValue(x, y, z), sourceModule[1].getValue(x, y, z), alpha); } else if (controlValue < (upperBound - edgeFalloff)) { alpha = Utils.sCurve3((controlValue - lowerCurve) / (upperCurve - lowerCurve)); return Utils.linearInterp(sourceModule[1].getValue(x, y, z), sourceModule[0].getValue(x, y, z), alpha); } else {