resume lookat what to change in furture

This commit is contained in:
2024-03-12 22:29:40 +08:00
parent 15baf1ecbd
commit a29a35ecea
2 changed files with 36 additions and 0 deletions

View File

@@ -75,6 +75,13 @@ namespace hgl
float aspect_ratio,
float znear,
float zfar);
/**
* 产生一个lookat变换矩阵
* @param eye 眼睛位置
* @param target 目标位置
* @param up 向上向量
*/
Matrix4f lookat(const Vector3f &eye,const Vector3f &target,const Vector3f &up);
inline Matrix4f translate(const Vector3f &v)
{