修改OpenGL2VulkanMatrix矩阵获取方式,原先的无法使用

This commit is contained in:
hyzboy 2020-05-19 19:02:03 +08:00
parent f016b0d8c5
commit 6b12034437
2 changed files with 6 additions and 3 deletions

View File

@ -20,7 +20,7 @@ namespace hgl
* X | Y X * X | Y X
*/ */
extern Matrix4f MATRIX_FROM_OPENGL_COORDINATE; //OpenGL坐标系数据到我方坐标系数据变换用矩阵 const Matrix4f GetOpenGL2VulkanMatrix(); //OpenGL坐标系数据到我方坐标系数据变换用矩阵
}//namespace graph }//namespace graph
}//namespace hgl }//namespace hgl

View File

@ -4,8 +4,11 @@ namespace hgl
{ {
namespace graph namespace graph
{ {
Matrix4f MATRIX_FROM_OPENGL_COORDINATE=scale(1,-1,1)*rotate(HGL_RAD_90,Vector3f(1,0,0)); const Matrix4f GetOpenGL2VulkanMatrix()
{
const Matrix4f MATRIX_FROM_OPENGL_COORDINATE=scale(1,-1,1)*rotate(HGL_RAD_90,Vector3f(1,0,0));
return MATRIX_FROM_OPENGL_COORDINATE;
}
}//namespace graph }//namespace graph
}//namespace hgl }//namespace hgl