forked from Dynamitos/Seele
Reverse depth is now working in the shadow pass
This commit is contained in:
1 parent
ed69a21b80
commit
a2f1e0bd8c
12 files changed
+127
-134
No files matched your search
@@ -32,7 +32,7 @@ void RenderPass::updateViewParameters(const Component::Camera& cam, const Compon
|
||||
Vector eyePos = transform.getPosition();
|
||||
Vector lookAt = eyePos + transform.getForward();
|
||||
Matrix4 cameraMatrix = glm::lookAt(eyePos, lookAt, Vector(0, 1, 0));
|
||||
Matrix4 projectionMatrix = viewport->getProjectionMatrix(cam.nearPlane, cam.farPlane);
|
||||
Matrix4 projectionMatrix = cam.getProjectionMatrix();
|
||||
viewParams = {
|
||||
.viewMatrix = cameraMatrix,
|
||||
.inverseViewMatrix = glm::inverse(cameraMatrix),
|
||||
|
||||
Reference in new issue
Block a user