pass softlightlevel through render state.
This commit is contained in:
parent
b9a6fe80a4
commit
98cc7eeb99
13 changed files with 45 additions and 94 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue