mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 19:58:53 +00:00
Ubershaders: Fix 6-bit color truncation not being applied
This commit is contained in:
parent
ed331918f0
commit
852e30bb8c
6 changed files with 17 additions and 15 deletions
|
@ -894,7 +894,7 @@ ShaderCode GenPixelShader(APIType ApiType, const ShaderHostConfig& host_config,
|
|||
{
|
||||
out.Write(" // If early depth is enabled, write to zbuffer before depth textures\n");
|
||||
out.Write(" // If early depth isn't enabled, we write to the zbuffer here\n");
|
||||
out.Write(" int zbuffer_zCoord = bpmem_early_ztest ? early_zCoord : zCoord;\n");
|
||||
out.Write(" int zbuffer_zCoord = bpmem_late_ztest ? zCoord : early_zCoord;\n");
|
||||
if (ApiType == APIType::D3D || ApiType == APIType::Vulkan)
|
||||
out.Write(" depth = 1.0 - float(zbuffer_zCoord) / 16777216.0;\n");
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue