Add palette support

This commit is contained in:
Magnus Norddahl 2016-11-20 04:06:21 +01:00
commit 6761e8639a
14 changed files with 94 additions and 19 deletions

View file

@ -136,6 +136,7 @@ void RenderPolySprite::Render(const TriMatrix &worldToClip, AActor *thing, subse
args.stenciltestvalue = 0;
args.stencilwritevalue = 1;
args.SetTexture(tex, thing->Translation);
args.SetColormap(sub->sector->ColorMap);
if (args.translation)
PolyTriangleDrawer::draw(args, TriDrawVariant::DrawSubsector, TriBlendMode::TranslateAlphaBlend);