Added normal matrices to transformable

This commit is contained in:
Robert 2021-01-26 15:36:57 +01:00
parent b3e82ca9df
commit 862ef6d34b
3 changed files with 15 additions and 1 deletions

View file

@ -351,6 +351,15 @@ namespace oglu
*/
virtual const glm::mat4& GetMatrix();
/**
* @brief Returns a normal matrix.
*
* For use in shaders to compute normals of surfaces.
*
* @return A 3x3 normal matrix
*/
glm::mat3 GetNormalMatrix();
/**
* @brief Get position as a 3D vector.
*