- Added 'canonical transparency' cvar r_canontrans - this simply turns off transparency for Doom objects that were marked as transparent sometime in ZDoom's development cycle
This commit is contained in:
parent
7acb492852
commit
01f88cfb16
19 changed files with 33 additions and 3 deletions
|
|
@ -68,6 +68,7 @@
|
|||
|
||||
EXTERN_CVAR(Bool, r_fullbrightignoresectorcolor)
|
||||
EXTERN_CVAR(Bool, gl_light_sprites)
|
||||
EXTERN_CVAR (Bool, r_canontrans)
|
||||
|
||||
namespace swrenderer
|
||||
{
|
||||
|
|
@ -212,6 +213,8 @@ namespace swrenderer
|
|||
if (thing->flags5 & MF5_BRIGHT)
|
||||
vis->renderflags |= RF_FULLBRIGHT; // kg3D
|
||||
vis->RenderStyle = thing->RenderStyle;
|
||||
if ((thing->flags8 & MF8_ZDOOMTRANS) && r_canontrans)
|
||||
vis->RenderStyle = LegacyRenderStyles[STYLE_Normal];
|
||||
vis->FillColor = thing->fillcolor;
|
||||
vis->Translation = thing->Translation; // [RH] thing translation table
|
||||
vis->FakeFlatStat = fakeside;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue