This commit is contained in:
Aaron Robinson 2004-03-29 04:34:38 +00:00
parent 425e64f806
commit 7f21a26059
3 changed files with 25 additions and 1 deletions

BIN
Cxbx.opt

Binary file not shown.

View File

@ -2455,6 +2455,8 @@ HRESULT WINAPI XTL::EmuIDirect3DDevice8_SetPixelShader
// Fake Programmable Pipeline
if(Handle == X_PIXELSHADER_FAKE_HANDLE)
{
// programmable pipeline
//*
static DWORD dwHandle = 0;
if(dwHandle == 0)
@ -2487,6 +2489,7 @@ HRESULT WINAPI XTL::EmuIDirect3DDevice8_SetPixelShader
if(FAILED(hRet))
EmuWarning("Could not set pixel shader!");
//*/
g_bFakePixelShaderLoaded = TRUE;
}

View File

@ -299,12 +299,33 @@ void XTL::EmuUpdateDeferredStates()
if(g_bFakePixelShaderLoaded)
{
g_pD3DDevice8->SetRenderState(D3DRS_FOGENABLE, FALSE);
// programmable pipeline
//*
for(int v=0;v<4;v++)
{
g_pD3DDevice8->SetTextureStageState(v, D3DTSS_COLOROP, D3DTOP_DISABLE);
g_pD3DDevice8->SetTextureStageState(v, D3DTSS_ALPHAOP, D3DTOP_DISABLE);
}
//*/
g_pD3DDevice8->SetRenderState(D3DRS_FOGENABLE, FALSE);
// fixed pipeline
/*
for(int v=0;v<4;v++)
{
g_pD3DDevice8->SetTextureStageState(v, D3DTSS_COLOROP, D3DTOP_MODULATE);
g_pD3DDevice8->SetTextureStageState(v, D3DTSS_COLORARG1, D3DTA_TEXTURE);
g_pD3DDevice8->SetTextureStageState(v, D3DTSS_COLORARG2, D3DTA_CURRENT);
g_pD3DDevice8->SetTextureStageState(v, D3DTSS_ALPHAOP, D3DTOP_MODULATE);
g_pD3DDevice8->SetTextureStageState(v, D3DTSS_ALPHAARG1, D3DTA_TEXTURE);
g_pD3DDevice8->SetTextureStageState(v, D3DTSS_ALPHAARG2, D3DTA_CURRENT);
}
g_pD3DDevice8->SetRenderState(D3DRS_NORMALIZENORMALS, TRUE);
g_pD3DDevice8->SetRenderState(D3DRS_LIGHTING,TRUE);
g_pD3DDevice8->SetRenderState(D3DRS_AMBIENT, 0xFFFFFFFF);
//*/
}
}