Merge pull request #10399 from Pokechu22/ubershader-fog-typo

UberShaderPixel: Fix typo in fog calculation
This commit is contained in:
JosJuice 2022-01-27 22:59:49 +01:00 committed by GitHub
commit 80771ec89e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1062,7 +1062,7 @@ ShaderCode GenPixelShader(APIType api_type, const ShaderHostConfig& host_config,
" }} else {{\n" " }} else {{\n"
" // orthographic\n" " // orthographic\n"
" // ze = a*Zs (here, no B_SHF)\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"
"\n" "\n"
" if (bool({})) {{\n", " if (bool({})) {{\n",