From 1699a613ffd9dae97725bb5ff2e4259db5d88325 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 5ff6bed..8e7123f 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.