Functions in GLSL are just like C-functions. ... normalize(-light.direction); // diffuse shading float diff = max(dot(normal, lightDir), 0.0); // specular ...
確定! 回上一頁