mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-24 06:39:58 -06:00
attempt at shadows. they're still a bit weird tho.
This commit is contained in:
@ -720,6 +720,14 @@ void SubmitPolygon()
|
||||
u32 polyalpha = (CurPolygonAttr >> 16) & 0x1F;
|
||||
poly->Translucent = ((texfmt == 1 || texfmt == 6) && !(CurPolygonAttr & 0x10)) || (polyalpha > 0 && polyalpha < 31);
|
||||
|
||||
poly->IsShadowMask = ((CurPolygonAttr & 0x3F000030) == 0x00000030);
|
||||
if ((NumPolygons == 1) || (!CurPolygonRAM[NumPolygons-2].IsShadowMask))
|
||||
poly->ClearStencil = poly->IsShadowMask;
|
||||
else
|
||||
poly->ClearStencil = false;
|
||||
|
||||
poly->IsShadow = ((CurPolygonAttr & 0x30) == 0x30) && !poly->IsShadowMask;
|
||||
|
||||
if (LastStripPolygon && clipstart > 0)
|
||||
{
|
||||
if (nverts == lastpolyverts)
|
||||
|
Reference in New Issue
Block a user