1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-07-07 03:13:49 +00:00

Remove special blend mode for Donald Duck because of regression in Roadsters.

This commit is contained in:
Sergey Lipskiy 2014-12-26 20:38:19 +06:00
parent bee93b776d
commit 1c6eb7449a
2 changed files with 11 additions and 0 deletions

View File

@ -691,12 +691,14 @@ void ShaderCombiner::updateColors(bool _bForce)
nSpecialBlendMode = 1;
_setV4Uniform(m_uniforms.uBlendColor, &gDP.blendColor.r, _bForce);
break;
/* Brings troubles with Roadsters sky
case 0xc702:
// Donald Duck
// clr_fog*a_fog + clr_in*1ma
nFogUsage = 5;
nSpecialBlendMode = 2;
break;
*/
}
int nFogMode = 0; // Normal

View File

@ -343,6 +343,7 @@ static const char* fragment_shader_readtex1color =
" if (uFbFixedAlpha == 2 || uFbFixedAlpha == 3) readtex1.a = 0.825; \n"
;
#if 0
static const char* fragment_shader_blender =
" switch (uSpecialBlendMode) { \n"
" case 1: \n"
@ -355,6 +356,14 @@ static const char* fragment_shader_blender =
" break; \n"
" } \n"
;
#else
static const char* fragment_shader_blender =
" if (uSpecialBlendMode == 1) { \n"
// Mace
" color1 = color1 * alpha1 + uBlendColor.rgb * (1.0 - alpha1); \n"
" } \n"
;
#endif
static const char* fragment_shader_end =
"} \n"