mirror of
https://github.com/ZDoom/Raze.git
synced 2025-05-31 09:20:59 +00:00
- use a slightly higher depth bias for translucent elements.
These can otherwise cause z-fighting when being used with non-translucent floor and wall sprites.
This commit is contained in:
parent
5556756d43
commit
0069af02e7
1 changed files with 1 additions and 1 deletions
|
@ -565,7 +565,7 @@ void HWDrawInfo::RenderTranslucent(FRenderState &state)
|
||||||
{
|
{
|
||||||
RenderAll.Clock();
|
RenderAll.Clock();
|
||||||
|
|
||||||
state.SetDepthBias(-1, -128);
|
state.SetDepthBias(-1, -160);
|
||||||
|
|
||||||
// final pass: translucent stuff
|
// final pass: translucent stuff
|
||||||
state.AlphaFunc(Alpha_GEqual, gl_mask_sprite_threshold);
|
state.AlphaFunc(Alpha_GEqual, gl_mask_sprite_threshold);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue