From bbfd6d06908d3545a11bb8f322300b4e724851cb Mon Sep 17 00:00:00 2001 From: Joshua Ashton Date: Thu, 26 Nov 2020 12:16:33 +0000 Subject: [PATCH] [util] Enable alpha test wiggle room for EverQuest 2 Fixes clothing being alpha tested incorrectly due to wonky interpolation on NVIDIA. Game uses oC0 == 1.0f My testing on NV shows the alpha test has a precision of 1/256 for all A8 and below formats, and around 1 / 2048 for A32F formats and 1 / 4096 for A16F formats (It makes no sense to me too) so anyway, we're just going to round this to a precision of 1 / 4096 and hopefully this should make things happy everywhere. Closes: #1832 --- src/util/config/config.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/util/config/config.cpp b/src/util/config/config.cpp index 879a41004..45542f2b9 100644 --- a/src/util/config/config.cpp +++ b/src/util/config/config.cpp @@ -406,6 +406,10 @@ namespace dxvk { { R"(\\SpellForce2.*\.exe$)", {{ { "d3d9.forceSamplerTypeSpecConstants", "True" }, }} }, + /* Everquest 2 */ + { R"(\\SpellForce2.*\.exe$)", {{ + { "d3d9.alphaTestWiggleRoom", "True" }, + }} }, }};