mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-07 20:11:50 +00:00
Minor refactor and fixes
This commit is contained in:
parent
1b935aa081
commit
5175c9be92
4 changed files with 12 additions and 10 deletions
|
|
@ -48,3 +48,7 @@ mat4 Camera::getView(){
|
|||
else
|
||||
return glm::translate(glm::mat4(1.0f), position);
|
||||
}
|
||||
|
||||
mat4 Camera::getProjView(){
|
||||
return getProjection()*getView();
|
||||
}
|
||||
|
|
@ -25,6 +25,7 @@ public:
|
|||
|
||||
mat4 getProjection();
|
||||
mat4 getView();
|
||||
mat4 getProjView();
|
||||
};
|
||||
|
||||
#endif /* WINDOW_CAMERA_H_ */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue