mirror of
https://github.com/OpenDriver2/REDRIVER2.git
synced 2024-11-22 10:22:48 +01:00
- improve tree shadow draw distance
This commit is contained in:
parent
ca1303d94b
commit
33bf94c404
@ -292,7 +292,16 @@ void DrawSprites(PACKED_CELL_OBJECT** sprites, int numFound)
|
||||
|
||||
count--;
|
||||
|
||||
if (wetness == 0 && gTimeOfDay != 3 && (pco->value & 0x20) == 0 && z < 7000 && numShadows < 40)
|
||||
#ifdef PSX
|
||||
#define MAX_TREE_SHADOW_DISTANCE 7000
|
||||
#else
|
||||
#define MAX_TREE_SHADOW_DISTANCE 14000
|
||||
#endif
|
||||
|
||||
if (wetness == 0 && gTimeOfDay != 3 &&
|
||||
(pco->value & 0x20) == 0 &&
|
||||
z < MAX_TREE_SHADOW_DISTANCE &&
|
||||
numShadows < 40)
|
||||
{
|
||||
gte_SetRotMatrix(&shadowMatrix);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user