mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Invert proj matrix offset properly in D3D.
This commit is contained in:
parent
a6ced1d0b4
commit
5667f34805
1 changed files with 5 additions and 0 deletions
|
@ -255,6 +255,11 @@ static void ConvertProjMatrixToD3D(Matrix4x4 &in, bool invertedX, bool invertedY
|
|||
float yoff = -0.5f / gstate_c.curRTRenderHeight;
|
||||
yoff = gstate_c.vpYOffset + (invertedY ? yoff : -yoff);
|
||||
|
||||
if (invertedX)
|
||||
xoff = -xoff;
|
||||
if (invertedY)
|
||||
yoff = -yoff;
|
||||
|
||||
in.translateAndScale(Vec3(xoff, yoff, 0.5f), Vec3(gstate_c.vpWidthScale, gstate_c.vpHeightScale, invertedZ ? -0.5 : 0.5f));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue