Both GLSL and OpenCL have a clamp function that will clamp a number to the upper or lower bound inserted if the value exceeds the bounds.
確定! 回上一頁