From 5fb6ceac452fa7960301d132f2f044073045564a Mon Sep 17 00:00:00 2001 From: Tommaso Checchi Date: Wed, 18 Oct 2017 02:02:56 -0700 Subject: Fixed fog, lava, water in Mario Galaxy (and possibly other games) in higher IRs by detecting & fixing the mipmaps that aren't just used for downscaling, but are handmade to create a gradient. --- Source/Core/VideoBackends/Vulkan/ObjectCache.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source/Core/VideoBackends/Vulkan/ObjectCache.cpp') diff --git a/Source/Core/VideoBackends/Vulkan/ObjectCache.cpp b/Source/Core/VideoBackends/Vulkan/ObjectCache.cpp index c0196cb7d6..1a5cfbf34e 100644 --- a/Source/Core/VideoBackends/Vulkan/ObjectCache.cpp +++ b/Source/Core/VideoBackends/Vulkan/ObjectCache.cpp @@ -329,7 +329,7 @@ VkSampler ObjectCache::GetSampler(const SamplerState& info) address_modes[static_cast(info.wrap_u.Value())], // VkSamplerAddressMode addressModeU address_modes[static_cast(info.wrap_v.Value())], // VkSamplerAddressMode addressModeV VK_SAMPLER_ADDRESS_MODE_CLAMP_TO_EDGE, // VkSamplerAddressMode addressModeW - info.lod_bias / 32.0f, // float mipLodBias + info.lod_bias / 256.0f, // float mipLodBias VK_FALSE, // VkBool32 anisotropyEnable 0.0f, // float maxAnisotropy VK_FALSE, // VkBool32 compareEnable -- cgit v1.2.3