- 2D drawer implementation complete for hardware renderer.
This also replaces DTA_ColormapStyle with proper implementations of its components. As implemented it was a very awkward mixture of various effects that already existed in a separate form. As a result of its implementation it required additional but completely redundant shader support which could be removed now. As a side effect of this change a new DTA_Desaturate option was added.
This commit is contained in:
parent
077df87704
commit
a40e085a46
16 changed files with 79 additions and 97 deletions
|
|
@ -541,13 +541,8 @@ void FGLRenderer::Draw2D(F2DDrawer *drawer)
|
|||
}
|
||||
else
|
||||
{
|
||||
gl_RenderState.SetObjectColor(cmd.mColor1);
|
||||
gl_RenderState.SetObjectColor2(cmd.mColor2);
|
||||
if (cmd.mFlags & F2DDrawer::DTF_IngameLighting)
|
||||
{
|
||||
gl_RenderState.SetFixedColormap(CM_INGAME2D);
|
||||
}
|
||||
else if (cmd.mFlags & F2DDrawer::DTF_SpecialColormap)
|
||||
gl_RenderState.Set2DColors(cmd.mColor1, cmd.mColor2);
|
||||
if (cmd.mFlags & F2DDrawer::DTF_SpecialColormap)
|
||||
{
|
||||
gl_RenderState.SetFixedColormap(CM_SPECIAL2D);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue