GLSL 方向光。 vertex shader的程式碼: fragment shader的程式碼: 執行結果: … ... NdotHV = max(dot(normal, normalize(gl_LightSource[0].
確定! 回上一頁