From c5ce2b9679465be2b23e8fa7bbe16f2978261799 Mon Sep 17 00:00:00 2001 From: Ian Curtis Date: Sun, 22 May 2016 19:17:15 +0000 Subject: [PATCH] fix alpha testing for texture format 7 --- Src/Graphics/New3D/New3D.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Src/Graphics/New3D/New3D.cpp b/Src/Graphics/New3D/New3D.cpp index 36f06fb..d0eb90e 100644 --- a/Src/Graphics/New3D/New3D.cpp +++ b/Src/Graphics/New3D/New3D.cpp @@ -896,6 +896,11 @@ void CNew3D::CacheModel(Model *m, const UINT32 *data) if (ph.TexEnabled()) { currentMesh->format = m_texSheet.GetTexFormat(ph.TexFormat(), ph.AlphaTest()); + + if (currentMesh->format == 7) { + currentMesh-> alphaTest = false; // alpha test is a 1 bit test, this format needs a lower threshold, since it has 16 levels of transparency + } + currentMesh->x = ph.X(); currentMesh->y = ph.Y(); currentMesh->width = ph.TexWidth();