From 8778f98c4a828d87f5d8edf285476eb41da17129 Mon Sep 17 00:00:00 2001 From: Ian Curtis Date: Fri, 17 Nov 2023 15:50:04 +0000 Subject: [PATCH] Add missing edge on transluency function --- Src/Graphics/New3D/PolyHeader.cpp | 5 +++++ Src/Graphics/New3D/PolyHeader.h | 1 + 2 files changed, 6 insertions(+) diff --git a/Src/Graphics/New3D/PolyHeader.cpp b/Src/Graphics/New3D/PolyHeader.cpp index 97dfdd1..2287932 100644 --- a/Src/Graphics/New3D/PolyHeader.cpp +++ b/Src/Graphics/New3D/PolyHeader.cpp @@ -179,6 +179,11 @@ bool PolyHeader::NoLosReturn() return (header[1] & 0x1) > 0; } +bool PolyHeader::EdgeOnTranslucency() +{ + return (header[1] & 0x80) > 0; +} + // // header 2 // diff --git a/Src/Graphics/New3D/PolyHeader.h b/Src/Graphics/New3D/PolyHeader.h index dbc0a92..b6b572e 100644 --- a/Src/Graphics/New3D/PolyHeader.h +++ b/Src/Graphics/New3D/PolyHeader.h @@ -108,6 +108,7 @@ public: bool FixedShading(); bool SmoothShading(); bool NoLosReturn(); // no line of sight return (still not exactly how sure this attribute is used yet) + bool EdgeOnTranslucency(); //header 2 bool TexUMirror();