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:
parent
bee93b776d
commit
1c6eb7449a
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue
Block a user