- made AActor::alpha a floating point value
- replaced some uses of FRACUNIT with OPAQUE when it was about translucency. - simplified some overly complicated translucency multiplications in the SBARINFO code.
This commit is contained in:
parent
b29058c1ab
commit
4e60ea0252
50 changed files with 235 additions and 216 deletions
|
|
@ -2359,13 +2359,13 @@ ESPSResult R_SetPatchStyle (FRenderStyle style, fixed_t alpha, int translation,
|
|||
if (style.BlendOp == STYLEOP_Shadow)
|
||||
{
|
||||
style = LegacyRenderStyles[STYLE_TranslucentStencil];
|
||||
alpha = FRACUNIT*3/10;
|
||||
alpha = TRANSLUC33;
|
||||
color = 0;
|
||||
}
|
||||
|
||||
if (style.Flags & STYLEF_TransSoulsAlpha)
|
||||
{
|
||||
alpha = fixed_t(transsouls * FRACUNIT);
|
||||
alpha = fixed_t(transsouls * OPAQUE);
|
||||
}
|
||||
else if (style.Flags & STYLEF_Alpha1)
|
||||
{
|
||||
|
|
@ -2373,7 +2373,7 @@ ESPSResult R_SetPatchStyle (FRenderStyle style, fixed_t alpha, int translation,
|
|||
}
|
||||
else
|
||||
{
|
||||
alpha = clamp<fixed_t> (alpha, 0, FRACUNIT);
|
||||
alpha = clamp<fixed_t> (alpha, 0, OPAQUE);
|
||||
}
|
||||
|
||||
dc_translation = NULL;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue