Crazy camera projection bug fixed. (nw)

I was a little too aggressive when refactoring code for the frustum projection.
This commit is contained in:
Andrew Gardner 2015-10-06 17:52:30 +02:00
parent 8bbd94eec9
commit b985400911

View File

@ -274,7 +274,7 @@ void hng64_state::setCameraProjectionMatrix(const UINT16* packet)
bottom = uToF(packet[13]);
// Note: The near and far clipping planes are totally guesses.
near_ = uToF(packet[6]); // + (uToF(packet[6]) * uToF(packet[4]));
near_ = uToF(packet[6]) + (uToF(packet[6]) * uToF(packet[4]));
far_ = 0.9f; // uToF(packet[9]) + (uToF(packet[9]) * uToF(packet[7]));
projectionMatrix[0] = (2.0f*near_)/(right-left);