mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 20:28:56 +00:00
PixelShaderGen: Change the "alpha" uniform to use integers.
This commit is contained in:
parent
ec60acac3a
commit
c13a5c38e9
3 changed files with 9 additions and 9 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue