Lightning is not additive anymore

Now otclient lightning may look like more tibia lights,
before this too many lights together would increase
brightness a lot, this won't happen anymore in cards
with OpenGL 1.4 or newer
This commit is contained in:
Eduardo Bart
2013-02-06 19:49:40 -02:00
parent 86c462eb4d
commit 7f6a4bbbe5
5 changed files with 53 additions and 1 deletions

View File

@@ -357,6 +357,19 @@ bool Graphics::canUseBlendFuncSeparate()
#endif
}
bool Graphics::canUseBlendEquation()
{
#if OPENGL_ES==2
return true;
#elif OPENGL_ES==1
return true;
#else
if(!GLEW_VERSION_1_4)
return false;
return true;
#endif
}
bool Graphics::canCacheBackbuffer()
{
if(!m_alphaBits)