From c65d490351e6e18693e2eb6fcd0a349a7628dec0 Mon Sep 17 00:00:00 2001 From: Jakly <102590697+Jaklyy@users.noreply.github.com> Date: Sun, 15 Jun 2025 13:24:42 -0400 Subject: [PATCH] small fix to translucency flag assignment (#2301) 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 9d6be8b8..1204741d 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;