From 1be617a258adca26d0f1d31fcb16c54d59277bdc Mon Sep 17 00:00:00 2001 From: Jaklyy <102590697+Jaklyy@users.noreply.github.com> Date: Sat, 5 Apr 2025 20:18:27 -0400 Subject: [PATCH] small fix to translucency flag assignment hardware does not care that the polygon's mode would prevent the texture from rendering translucent pixels --- src/GPU3D.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/GPU3D.cpp b/src/GPU3D.cpp index 4a1426aa..0f0e0224 100644 --- a/src/GPU3D.cpp +++ b/src/GPU3D.cpp @@ -1219,7 +1219,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;