mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-22 04:21:23 +00:00
Fix FOF side transparency/blending in Software
This commit is contained in:
parent
3849ba65aa
commit
4f33b71ef1
1 changed files with 13 additions and 17 deletions
30
src/r_segs.c
30
src/r_segs.c
|
@ -1004,25 +1004,21 @@ void R_RenderThickSideRange(drawseg_t *ds, INT32 x1, INT32 x2, ffloor_t *pfloor)
|
||||||
{
|
{
|
||||||
dc_iscale = 0xffffffffu / (unsigned)spryscale;
|
dc_iscale = 0xffffffffu / (unsigned)spryscale;
|
||||||
|
|
||||||
// Skip if texture is multipatch
|
// Column has a single post and it matches the texture height, use regular column drawers
|
||||||
if (textures[texnum]->transparency)
|
if (col->num_posts == 1 && col->posts[0].topdelta == 0 && col->posts[0].length == (unsigned)dc_texheight)
|
||||||
{
|
{
|
||||||
// Column has a single post and it matches the texture height, use regular column drawers
|
if (fuzzy)
|
||||||
if (col->num_posts == 1 && col->posts[0].topdelta == 0 && col->posts[0].length == (unsigned)dc_texheight)
|
colfunc = colfuncs[COLDRAWFUNC_FUZZY];
|
||||||
{
|
|
||||||
if (fuzzy)
|
|
||||||
colfunc = colfuncs[COLDRAWFUNC_FUZZY];
|
|
||||||
else
|
|
||||||
colfunc = colfuncs[BASEDRAWFUNC];
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
colfunc = colfuncs[BASEDRAWFUNC];
|
||||||
// Otherwise use column drawers with extra checks
|
}
|
||||||
if (fuzzy)
|
else
|
||||||
colfunc = colfuncs[COLDRAWFUNC_CLAMPEDTRANS];
|
{
|
||||||
else
|
// Otherwise use column drawers with extra checks
|
||||||
colfunc = colfuncs[COLDRAWFUNC_CLAMPED];
|
if (fuzzy)
|
||||||
}
|
colfunc = colfuncs[COLDRAWFUNC_CLAMPEDTRANS];
|
||||||
|
else
|
||||||
|
colfunc = colfuncs[COLDRAWFUNC_CLAMPED];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue