mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-09 17:49:01 +00:00
D3D: Depth range inversion.
Credits go to Galop1n for designing this technique and to BhaaLseN for cleaning up the commit.
This commit is contained in:
parent
308b72d376
commit
2975e53091
6 changed files with 36 additions and 16 deletions
|
@ -385,7 +385,7 @@ static inline void GenerateVertexShader(T& out, u32 components, API_TYPE api_typ
|
|||
}
|
||||
else if (api_type == API_D3D)
|
||||
{
|
||||
out.Write("o.pos.z = o.pos.w + o.pos.z;\n");
|
||||
out.Write("o.pos.z = -o.pos.z;\n");
|
||||
}
|
||||
else // OGL
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue