make closer to OpenGL sphere mapping

This commit is contained in:
Chris Danford
2005-11-23 22:16:09 +00:00
parent 3060418806
commit 5c6457d938
2 changed files with 6 additions and 4 deletions
+5 -3
View File
@@ -393,6 +393,8 @@ CString SetD3DParams( bool &bNewDeviceOut )
}
}
g_pd3dDevice->SetRenderState( D3DRS_NORMALIZENORMALS, TRUE );
return CString();
}
@@ -830,10 +832,10 @@ void RageDisplay_D3D::SendCurrentMatrices()
{
static const RageMatrix tex = RageMatrix
(
0.8f, 0.0f, 0.0f, 0.0f,
0.0f, -0.8f, 0.0f, 0.0f,
0.5f, 0.0f, 0.0f, 0.0f,
0.0f, -0.5f, 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 );