From c33936e86213a74e3def3f7b51d5f9c7e0e3e5c4 Mon Sep 17 00:00:00 2001 From: n64 Date: Sat, 4 Jul 2020 22:25:32 +0200 Subject: [PATCH] Enhance Z-fighting issues for shadows --- src/game/shadow.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/game/shadow.c b/src/game/shadow.c index 5ff6beda..8e7123f6 100644 --- a/src/game/shadow.c +++ b/src/game/shadow.c @@ -13,6 +13,11 @@ #include "shadow.h" #include "sm64.h" +#ifndef TARGET_N64 +// Avoid Z-fighting +#define find_floor_height_and_data 0.4 + find_floor_height_and_data +#endif + /** * @file shadow.c * This file implements a self-contained subsystem used to draw shadows.