ULRE/inc/hgl/graph/WorldMatrix.h

33 lines
796 B
C
Raw Normal View History

2020-01-11 21:28:41 +08:00
#ifndef HGL_GRAPH_WORLD_MATRIX_INCLUDE
#define HGL_GRAPH_WORLD_MATRIX_INCLUDE
#include<hgl/math/Math.h>
namespace hgl
{
namespace graph
{
/**
*
* @see res/shader/UBO_WorldMatrix.glsl
*/
struct WorldMatrix
2020-01-11 21:28:41 +08:00
{
2020-01-13 20:13:48 +08:00
Matrix4f ortho; //2D正角视图矩阵
2020-01-11 21:28:41 +08:00
2020-01-13 20:13:48 +08:00
Matrix4f projection;
Matrix4f inverse_projection;
2020-01-11 21:28:41 +08:00
2020-01-13 20:13:48 +08:00
Matrix4f modelview;
Matrix4f inverse_modelview;
2020-01-11 21:28:41 +08:00
2020-01-13 20:13:48 +08:00
Matrix4f mvp;
Matrix4f inverse_map;
2020-01-11 21:28:41 +08:00
2020-01-13 20:13:48 +08:00
Vector4f view_pos; ///<眼睛坐标
Vector2f resolution; ///<画布尺寸
2020-01-11 21:28:41 +08:00
};//struct WorldMatrix
}//namespace graph
}//namespace hgl
#endif//HGL_GRAPH_WORLD_MATRIX_INCLUDE