1
Fork 0

Enhance Z-fighting issues for shadows

This commit is contained in:
n64 2020-07-04 22:25:32 +02:00
parent 518c7a2a0b
commit 1699a613ff

View file

@ -13,6 +13,11 @@
#include "shadow.h" #include "shadow.h"
#include "sm64.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 * @file shadow.c
* This file implements a self-contained subsystem used to draw shadows. * This file implements a self-contained subsystem used to draw shadows.