* fix qer_alphafunc equal/greater/less/lequal alphatest modes (was always 'gequal')
This commit is contained in:
parent
9930b8842b
commit
b06c551866
|
|
@ -2451,16 +2451,22 @@ void OpenGLShader::construct( const char* name ){
|
||||||
{
|
{
|
||||||
case IShader::eAlways:
|
case IShader::eAlways:
|
||||||
state.m_alphafunc = GL_ALWAYS;
|
state.m_alphafunc = GL_ALWAYS;
|
||||||
|
break;
|
||||||
case IShader::eEqual:
|
case IShader::eEqual:
|
||||||
state.m_alphafunc = GL_EQUAL;
|
state.m_alphafunc = GL_EQUAL;
|
||||||
|
break;
|
||||||
case IShader::eLess:
|
case IShader::eLess:
|
||||||
state.m_alphafunc = GL_LESS;
|
state.m_alphafunc = GL_LESS;
|
||||||
|
break;
|
||||||
case IShader::eGreater:
|
case IShader::eGreater:
|
||||||
state.m_alphafunc = GL_GREATER;
|
state.m_alphafunc = GL_GREATER;
|
||||||
|
break;
|
||||||
case IShader::eLEqual:
|
case IShader::eLEqual:
|
||||||
state.m_alphafunc = GL_LEQUAL;
|
state.m_alphafunc = GL_LEQUAL;
|
||||||
|
break;
|
||||||
case IShader::eGEqual:
|
case IShader::eGEqual:
|
||||||
state.m_alphafunc = GL_GEQUAL;
|
state.m_alphafunc = GL_GEQUAL;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
reinterpret_cast<Vector3&>( state.m_colour ) = m_shader->getTexture()->color;
|
reinterpret_cast<Vector3&>( state.m_colour ) = m_shader->getTexture()->color;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user