From f92d60496c5e33a4c2e021985a36ad778763db0c Mon Sep 17 00:00:00 2001 From: Joshua Ashton Date: Wed, 27 May 2020 17:14:12 +0100 Subject: [PATCH] [util] Enable forceSamplerTypeSpecConstants for SpellForce 2: Faith in Destiny MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The game binds a 2D texture to a 3D (volume) sampler which causes the readback to be 0 0 0 0 on native, whereas we can workaround it and see the intended texture and cool refracty effect that would have rendered on older real hardware 👏 Closes #1645 --- 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 726c7a88b..b93c54261 100644 --- a/src/util/config/config.cpp +++ b/src/util/config/config.cpp @@ -348,6 +348,10 @@ namespace dxvk { { "d3d9.longMad", "True" }, { "d3d9.invariantPosition", "True" }, }} }, + /* SpellForce 2: Faith in Destiny */ + { R"(\\SpellForce2FaithInDestiny\.exe$)", {{ + { "d3d9.forceSamplerTypeSpecConstants", "True" }, + }} }, }};