Commit 98837735 authored by Matt Larsen's avatar Matt Larsen Committed by Robert Maynard
Browse files

Corrected error in projection matrix that was causing mismatches with ray...

Corrected error in projection matrix that was causing mismatches with ray tracing image and depth buffers.
parent f9c6f9cd
......@@ -92,6 +92,7 @@ public:
projectionMatrix(2,2) = -(FarPlane + NearPlane) / (FarPlane - NearPlane);
projectionMatrix(3,2) = -1.f;
projectionMatrix(2,3) = -(2.f * FarPlane * NearPlane) / (FarPlane - NearPlane);
projectionMatrix(3,3) = 0.f;
return projectionMatrix;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment