PixelShaderGen: Change the "alpha" uniform to use integers.

This commit is contained in:
Tony Wasserka
2013-10-10 20:36:55 +02:00
parent ec60acac3a
commit c13a5c38e9
3 changed files with 9 additions and 9 deletions

View File

@ -164,14 +164,14 @@ void PixelShaderManager::SetColorChanged(int type, int num)
void PixelShaderManager::SetAlpha()
{
constants.alpha[0] = bpmem.alpha_test.ref0 / 255.0f;
constants.alpha[1] = bpmem.alpha_test.ref1 / 255.0f;
constants.alpha[0] = bpmem.alpha_test.ref0;
constants.alpha[1] = bpmem.alpha_test.ref1;
dirty = true;
}
void PixelShaderManager::SetDestAlpha()
{
constants.alpha[3] = bpmem.dstalpha.alpha / 255.0f;
constants.alpha[3] = bpmem.dstalpha.alpha;
dirty = true;
}