glm::vec4をに変換するにはどうすればよいglm::vec3ですか?
x、、のみが必要ですy-コンポーネントをドロップできます。zw
GLSLではこれは[1]で実行できます.xyzが、glmではコンパイルエラーが発生します。
error: 'glm::vec4' has no member named 'xyz'
[1] http://en.wikibooks.org/wiki/GLSL_Programming/Vector_and_Matrix_Operations#Components