From b9854009117b0804d8085d60b4bc1b7ab9bcc312 Mon Sep 17 00:00:00 2001 From: Andrew Gardner Date: Tue, 6 Oct 2015 17:52:30 +0200 Subject: [PATCH] Crazy camera projection bug fixed. (nw) I was a little too aggressive when refactoring code for the frustum projection. --- src/mame/video/hng64_3d.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mame/video/hng64_3d.c b/src/mame/video/hng64_3d.c index 33044655171..0d9f3edb8a6 100644 --- a/src/mame/video/hng64_3d.c +++ b/src/mame/video/hng64_3d.c @@ -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);