Fix how our current pixel shader conversion calculates the final combiner special purpose register 'sum' : it was accidentally multiplying instead of adding it's arguments!
This commit is contained in:
parent
1ee123900b
commit
a412c80b24
|
@ -3925,8 +3925,8 @@ void PSH_XBOX_SHADER::ConvertXFCToNative(int i)
|
|||
|
||||
if (NeedsSum)
|
||||
{
|
||||
// Add a new opcode that calculates r0*v1 :
|
||||
Ins.Initialize(PO_MUL);
|
||||
// Add a new opcode that calculates r0+v1 :
|
||||
Ins.Initialize(PO_ADD);
|
||||
Ins.Output[0].SetRegister(PARAM_T, FakeRegNr_Sum, MASK_RGBA); // 'r2'
|
||||
|
||||
Ins.Parameters[0].SetRegister(PARAM_R, 0, MASK_RGB);
|
||||
|
|
Loading…
Reference in New Issue