Added normal matrices to transformable
This commit is contained in:
parent
b3e82ca9df
commit
862ef6d34b
3 changed files with 15 additions and 1 deletions
|
@ -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.
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue