mirror of
https://github.com/open-goal/jak-project.git
synced 2024-10-20 11:26:18 -04:00
[graphics] improve blending when depth write is disabled (#1386)
This commit is contained in:
parent
dad84ec249
commit
7fc0a07c88
|
@ -103,9 +103,13 @@ DoubleDraw setup_opengl_from_draw_mode(DrawMode mode, u32 tex_unit, bool mipmap)
|
|||
// ok, no need for double draw
|
||||
break;
|
||||
case GsTest::AlphaFail::FB_ONLY:
|
||||
// darn, we need to draw twice
|
||||
double_draw.kind = DoubleDrawKind::AFAIL_NO_DEPTH_WRITE;
|
||||
double_draw.aref_second = alpha_min;
|
||||
if (mode.get_depth_write_enable()) {
|
||||
// darn, we need to draw twice
|
||||
double_draw.kind = DoubleDrawKind::AFAIL_NO_DEPTH_WRITE;
|
||||
double_draw.aref_second = alpha_min;
|
||||
} else {
|
||||
alpha_min = 0.f;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
ASSERT(false);
|
||||
|
|
Loading…
Reference in a new issue