forked from Dynamitos/Seele
Shadows do at least something
This commit is contained in:
1 parent
ed66635191
commit
174ff23164
11 files changed
+63
-52
No files matched your search
@@ -26,6 +26,6 @@ Matrix4 Viewport::getProjectionMatrix(float nearPlane, float farPlane) const {
|
||||
Matrix4 projectionMatrix = glm::perspective(fieldOfView, sizeX / static_cast<float>(sizeY), nearPlane, farPlane);
|
||||
return correctionMatrix * projectionMatrix;
|
||||
} else {
|
||||
return correctionMatrix * glm::ortho(orthoLeft, orthoRight, orthoTop, orthoBottom, farPlane, nearPlane);
|
||||
return correctionMatrix * glm::ortho(orthoLeft, orthoRight, orthoBottom, orthoTop, farPlane, nearPlane);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user