mirror of
https://github.com/libretro/Play-.git
synced 2024-12-11 18:54:11 +00:00
Add support for sprites using STQ registers.
This commit is contained in:
parent
285cc21778
commit
0762665beb
@ -1010,7 +1010,20 @@ void CGSH_Direct3D9::Prim_Sprite()
|
||||
}
|
||||
else
|
||||
{
|
||||
//TODO
|
||||
ST st[2];
|
||||
st[0] <<= m_vtxBuffer[1].nST;
|
||||
st[1] <<= m_vtxBuffer[0].nST;
|
||||
|
||||
float q1 = rgbaq[1].nQ;
|
||||
float q2 = rgbaq[0].nQ;
|
||||
if(q1 == 0) q1 = 1;
|
||||
if(q2 == 0) q2 = 1;
|
||||
|
||||
nU1 = st[0].nS / q1;
|
||||
nU2 = st[1].nS / q2;
|
||||
|
||||
nV1 = st[0].nT / q1;
|
||||
nV2 = st[1].nT / q2;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user