[GameCommand] Don't allow battle/rave with Routine (StyleType_TwoPlayersSharedSides). also cleanup
[RageTypes] remove glowmode stub stuff [RageDisplayOGL] update comments slightly
This commit is contained in:
@@ -1593,22 +1593,22 @@ void RageDisplay_OGL::SetTextureMode( TextureUnit tu, TextureMode tm )
|
||||
glTexEnvi( GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_ADD );
|
||||
break;
|
||||
case TextureMode_Glow:
|
||||
// the below function is brighten:
|
||||
// the below function is glowmode,brighten:
|
||||
if( !GLExt.m_bARB_texture_env_combine && !GLExt.m_bEXT_texture_env_combine )
|
||||
{
|
||||
/* This is changing blend state, instead of texture state, which isn't
|
||||
* great, but it's better than doing nothing. */
|
||||
/* This is changing blend state, instead of texture state, which
|
||||
* isn't great, but it's better than doing nothing. */
|
||||
glBlendFunc( GL_SRC_ALPHA, GL_ONE );
|
||||
return;
|
||||
}
|
||||
|
||||
// and this is whiten:
|
||||
/* Source color is the diffuse color only: */
|
||||
// and this is glowmode,whiten:
|
||||
// Source color is the diffuse color only:
|
||||
glTexEnvi( GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_COMBINE_EXT );
|
||||
glTexEnvi( GL_TEXTURE_ENV, GLenum(GL_COMBINE_RGB_EXT), GL_REPLACE );
|
||||
glTexEnvi( GL_TEXTURE_ENV, GLenum(GL_SOURCE0_RGB_EXT), GL_PRIMARY_COLOR_EXT );
|
||||
|
||||
/* Source alpha is texture alpha * diffuse alpha: */
|
||||
// Source alpha is texture alpha * diffuse alpha:
|
||||
glTexEnvi( GL_TEXTURE_ENV, GLenum(GL_COMBINE_ALPHA_EXT), GL_MODULATE );
|
||||
glTexEnvi( GL_TEXTURE_ENV, GLenum(GL_OPERAND0_ALPHA_EXT), GL_SRC_ALPHA );
|
||||
glTexEnvi( GL_TEXTURE_ENV, GLenum(GL_SOURCE0_ALPHA_EXT), GL_PRIMARY_COLOR_EXT );
|
||||
|
||||
Reference in New Issue
Block a user