mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06: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:
@ -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
|
||||
{
|
||||
|
Reference in New Issue
Block a user