mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-10 23:01:59 +00:00
- Added desaturated translation support to ACS.
SVN r3878 (trunk)
This commit is contained in:
parent
9a28216e30
commit
864fb5798e
2 changed files with 20 additions and 0 deletions
|
@ -6534,6 +6534,25 @@ scriptwait:
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case PCD_TRANSLATIONRANGE3:
|
||||||
|
{ // translation using desaturation
|
||||||
|
int start = STACK(8);
|
||||||
|
int end = STACK(7);
|
||||||
|
fixed_t r1 = STACK(6);
|
||||||
|
fixed_t g1 = STACK(5);
|
||||||
|
fixed_t b1 = STACK(4);
|
||||||
|
fixed_t r2 = STACK(3);
|
||||||
|
fixed_t g2 = STACK(2);
|
||||||
|
fixed_t b2 = STACK(1);
|
||||||
|
sp -= 8;
|
||||||
|
|
||||||
|
if (translation != NULL)
|
||||||
|
translation->AddDesaturation(start, end,
|
||||||
|
FIXED2DBL(r1), FIXED2DBL(g1), FIXED2DBL(b1),
|
||||||
|
FIXED2DBL(r2), FIXED2DBL(g2), FIXED2DBL(b2));
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
case PCD_ENDTRANSLATION:
|
case PCD_ENDTRANSLATION:
|
||||||
// This might be useful for hardware rendering, but
|
// This might be useful for hardware rendering, but
|
||||||
// for software it is superfluous.
|
// for software it is superfluous.
|
||||||
|
|
|
@ -601,6 +601,7 @@ public:
|
||||||
PCD_PUSHFUNCTION, // from Eternity
|
PCD_PUSHFUNCTION, // from Eternity
|
||||||
/*360*/ PCD_CALLSTACK, // from Eternity
|
/*360*/ PCD_CALLSTACK, // from Eternity
|
||||||
PCD_SCRIPTWAITNAMED,
|
PCD_SCRIPTWAITNAMED,
|
||||||
|
PCD_TRANSLATIONRANGE3,
|
||||||
|
|
||||||
/*361*/ PCODE_COMMAND_COUNT
|
/*361*/ PCODE_COMMAND_COUNT
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue