Audio module, simple text rendering

This commit is contained in:
MihailRis 2022-03-20 23:48:21 +03:00 • committed by GitHub
parent e96fd909ea
commit 1770acbfef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 702 additions and 17 deletions

View file

@ -37,7 +37,10 @@ void Camera::rotate(float x, float y, float z){
mat4 Camera::getProjection(){
float aspect = (float)Window::width / (float)Window::height;
return glm::perspective(fov*zoom, aspect, 0.05f, 1500.0f);
if (perspective)
return glm::perspective(fov*zoom, aspect, 0.05f, 1500.0f);
else
return glm::ortho(0.0f, fov*aspect, 0.0f, fov);
}
mat4 Camera::getView(){