mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Merge pull request #932 from raven02/patch-7
Add thoughmode for fliptexture
This commit is contained in:
commit
16df2c6267
1 changed files with 6 additions and 2 deletions
|
@ -639,8 +639,12 @@ void TransformDrawEngine::SoftwareTransformAndDraw(
|
|||
memcpy(&transformed[index].x, v, 3 * sizeof(float));
|
||||
transformed[index].fog = fogCoef;
|
||||
memcpy(&transformed[index].u, uv, 2 * sizeof(float));
|
||||
if (gstate_c.flipTexture)
|
||||
transformed[index].v = 1.0f - transformed[index].v; //(float)gstate_c.actualTextureHeight / gstate_c.curTextureHeight - transformed[index].v;
|
||||
if (gstate_c.flipTexture) {
|
||||
if (throughmode)
|
||||
transformed[index].v = (float)gstate_c.actualTextureHeight / gstate_c.curTextureHeight - transformed[index].v;
|
||||
else
|
||||
transformed[index].v = 1.0f - transformed[index].v * 2.0f;
|
||||
}
|
||||
for (int i = 0; i < 4; i++) {
|
||||
transformed[index].color0[i] = c0[i] * 255.0f;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue