attempt at shadows. they're still a bit weird tho.

This commit is contained in:
StapleButter
2017-04-22 18:04:54 +02:00
parent 70c72004ac
commit a086e22023
3 changed files with 63 additions and 9 deletions

View File

@ -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)