vec3 n = normalize(normal); vec3 l = normalize(lightPosition - position); ... Here mix() is a GLSL method which returns the linear interpolation.
確定! 回上一頁