pass softlightlevel through render state.

This commit is contained in:
Christoph Oelckers 2014-05-12 00:13:19 +02:00
commit 98cc7eeb99
13 changed files with 45 additions and 94 deletions

View file

@ -212,6 +212,11 @@ bool FRenderState::ApplyShader()
glUniform4f(activeShader->dlightcolor_index, mDynColor.r / 255.f, mDynColor.g / 255.f, mDynColor.b / 255.f, 0);
}
if (glset.lightmode == 8)
{
glVertexAttrib1f(VATTR_LIGHTLEVEL, mSoftLight / 255.f);
}
return true;
}
return false;