mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2024-06-02 19:47:32 -04:00
shadow, shadow mask, and decals count as translucent based on texture format
This commit is contained in:
parent
4648cd2219
commit
6acefec43c
|
@ -1216,7 +1216,7 @@ void GPU3D::SubmitPolygon() noexcept
|
|||
|
||||
u32 texfmt = (TexParam >> 26) & 0x7;
|
||||
u32 polyalpha = (CurPolygonAttr >> 16) & 0x1F;
|
||||
poly->Translucent = ((texfmt == 1 || texfmt == 6) && !(CurPolygonAttr & 0x10)) || (polyalpha > 0 && polyalpha < 31);
|
||||
poly->Translucent = (texfmt == 1 || texfmt == 6) || (polyalpha > 0 && polyalpha < 31);
|
||||
|
||||
poly->IsShadowMask = ((CurPolygonAttr & 0x3F000030) == 0x00000030);
|
||||
poly->IsShadow = ((CurPolygonAttr & 0x30) == 0x30) && !poly->IsShadowMask;
|
||||
|
|
Loading…
Reference in a new issue