... calculated with this code, you need GLSL code something like this: ... vec3 n = normalize( ( modelMatrix * vec4( normal, 0.0 ) ).xyz );
確定! 回上一頁