float diffuse = 0.8 * clamp(0, dot(n, l), 1); ... pow(clamp(0, dot(e, r), 1), 2); ... Here mix() is a GLSL method which returns the linear interpolation.
確定! 回上一頁