- replace softpoly block drawers with span drawers and make them use blending rules directly from render styles
- add dynlights to softpoly pal mode
This commit is contained in:
parent
ac207cce85
commit
4e6226fc2d
12 changed files with 629 additions and 1386 deletions
|
|
@ -354,7 +354,14 @@ void RenderPolyWall::Render(PolyRenderThread *thread)
|
|||
}
|
||||
else
|
||||
{
|
||||
args.SetStyle(Additive ? TriBlendMode::Add : TriBlendMode::Normal, MIN(Alpha, 1.0));
|
||||
double a = MIN(Alpha, 1.0);
|
||||
if (Additive)
|
||||
args.SetStyle(TriBlendMode::Add, a);
|
||||
else if (a < 1.0)
|
||||
args.SetStyle(TriBlendMode::Translucent, a);
|
||||
else
|
||||
args.SetStyle(TriBlendMode::Normal);
|
||||
|
||||
args.SetStencilTestValue(StencilValue + 1);
|
||||
args.SetDepthTest(true);
|
||||
args.SetWriteDepth(true);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue