vec3 L = normalize( LightPosition.xyz - pos ); // light Vector ... vec3 N = normalize( ModelView*vec4(vNormal, 0.0) ).xyz; ... GLSL normalize function.
確定! 回上一頁