mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2025-02-20 10:53:19 +00:00
Visual mode: highlight was nearly invisible in low-brightness areas when fog rendering was enabled.
This commit is contained in:
parent
2945c258d3
commit
9498753cff
1 changed files with 1 additions and 1 deletions
|
@ -191,7 +191,7 @@ float4 ps_main_highlight_fog(LitPixelData pd) : COLOR
|
|||
// Blend texture color, vertex color and modulation color
|
||||
float4 ncolor = tcolor * pd.color * modulatecolor;
|
||||
float4 hcolor = float4(highlightcolor.rgb, ncolor.a);
|
||||
return getFogColor(pd, float4(hcolor.rgb * highlightcolor.a + (ncolor.rgb - 0.4f * highlightcolor.a), ncolor.a + 0.25f)); //tcolor.a
|
||||
return getFogColor(pd, float4(hcolor.rgb * highlightcolor.a + (ncolor.rgb - 0.4f * highlightcolor.a), ncolor.a + 0.25f)) * float4(highlightcolor.rgb, 1.0f);
|
||||
}
|
||||
|
||||
//mxd: used to draw bounding boxes
|
||||
|
|
Loading…
Reference in a new issue