make closer to OpenGL sphere mapping
This commit is contained in:
@@ -393,6 +393,8 @@ CString SetD3DParams( bool &bNewDeviceOut )
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
g_pd3dDevice->SetRenderState( D3DRS_NORMALIZENORMALS, TRUE );
|
||||||
|
|
||||||
return CString();
|
return CString();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -830,10 +832,10 @@ void RageDisplay_D3D::SendCurrentMatrices()
|
|||||||
{
|
{
|
||||||
static const RageMatrix tex = RageMatrix
|
static const RageMatrix tex = RageMatrix
|
||||||
(
|
(
|
||||||
0.8f, 0.0f, 0.0f, 0.0f,
|
0.5f, 0.0f, 0.0f, 0.0f,
|
||||||
0.0f, -0.8f, 0.0f, 0.0f,
|
0.0f, -0.5f, 0.0f, 0.0f,
|
||||||
0.0f, 0.0f, 0.0f, 0.0f,
|
0.0f, 0.0f, 0.0f, 0.0f,
|
||||||
0.50, -0.50, 0.0f, 1.0f
|
0.5f, -0.5f, 0.0f, 1.0f
|
||||||
);
|
);
|
||||||
g_pd3dDevice->SetTransform( (D3DTRANSFORMSTATETYPE)(D3DTS_TEXTURE0+tu), (D3DMATRIX*)&tex );
|
g_pd3dDevice->SetTransform( (D3DTRANSFORMSTATETYPE)(D3DTS_TEXTURE0+tu), (D3DMATRIX*)&tex );
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ class RageDisplay_D3D: public RageDisplay
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
RageDisplay_D3D();
|
RageDisplay_D3D();
|
||||||
~RageDisplay_D3D();
|
virtual ~RageDisplay_D3D();
|
||||||
CString Init( VideoModeParams p );
|
CString Init( VideoModeParams p );
|
||||||
|
|
||||||
virtual CString GetApiDescription() const { return "D3D"; }
|
virtual CString GetApiDescription() const { return "D3D"; }
|
||||||
|
|||||||
Reference in New Issue
Block a user