mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-07 03:13:49 +00:00
Simulate N64 color sign-extend.
This commit is contained in:
parent
472c31986c
commit
2656436217
|
@ -295,6 +295,8 @@ int compileCombiner(Combiner & _color, Combiner & _alpha, std::string & _strShad
|
|||
nInputs |= _compileCombiner(_color.stage[0], ColorInput, _strShader);
|
||||
|
||||
_strShader.append(" combined_color = vec4(color1, alpha1); \n");
|
||||
// Simulate N64 color sign-extend.
|
||||
_strShader.append(" combined_color += vec4(-2.0) * (vec4(1.0) - step(combined_color, vec4(1.0))); \n");
|
||||
if (_alpha.numStages == 2) {
|
||||
_strShader.append(" alpha2 = ");
|
||||
_correctSecondStageParams(_alpha.stage[1]);
|
||||
|
|
Loading…
Reference in New Issue
Block a user