summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/UberShaderPixel.cpp
diff options
context:
space:
mode:
authorPokechu22 <Pokechu022@gmail.com>2022-01-26 20:23:35 -0800
committerPokechu22 <Pokechu022@gmail.com>2022-01-26 20:23:35 -0800
commitcc9ed4815dad459e08672f0eadd4c5e7ce047051 (patch)
treed1bb89f05e268120de0c4d5abc513a55298db44b /Source/Core/VideoCommon/UberShaderPixel.cpp
parenta8c5c9dffc7d3a0e0164f1b49a1595359550bfaf (diff)
UberShaderPixel: Fix typo in fog calculation
Diffstat (limited to 'Source/Core/VideoCommon/UberShaderPixel.cpp')
-rw-r--r--Source/Core/VideoCommon/UberShaderPixel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/UberShaderPixel.cpp b/Source/Core/VideoCommon/UberShaderPixel.cpp
index 178de469a3..ebf4afa55f 100644
--- a/Source/Core/VideoCommon/UberShaderPixel.cpp
+++ b/Source/Core/VideoCommon/UberShaderPixel.cpp
@@ -1062,7 +1062,7 @@ ShaderCode GenPixelShader(APIType api_type, const ShaderHostConfig& host_config,
" }} else {{\n"
" // orthographic\n"
" // ze = a*Zs (here, no B_SHF)\n"
- " ze = " I_FOGF ".z * float(zCoord) / 16777216.0;\n"
+ " ze = " I_FOGF ".x * float(zCoord) / 16777216.0;\n"
" }}\n"
"\n"
" if (bool({})) {{\n",