From 7a4edd6ef74998b9379ea4933c7cb557d0b38d5f Mon Sep 17 00:00:00 2001 From: fgsfds Date: Wed, 16 Aug 2023 02:15:04 +0200 Subject: [PATCH] port: fix SHADE_ALPHA with fog again --- port/fast3d/gfx_pc.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/port/fast3d/gfx_pc.cpp b/port/fast3d/gfx_pc.cpp index a609e27a4..f4623b33e 100644 --- a/port/fast3d/gfx_pc.cpp +++ b/port/fast3d/gfx_pc.cpp @@ -1569,12 +1569,7 @@ static void gfx_sp_tri1(uint8_t vtx1_idx, uint8_t vtx2_idx, uint8_t vtx3_idx, bo } #endif } else { - if (use_fog && color == &v_arr[i]->color) { - // Shade alpha is 100% for fog - buf_vbo[buf_vbo_len++] = 1.0f; - } else { - buf_vbo[buf_vbo_len++] = color->a / 255.0f; - } + buf_vbo[buf_vbo_len++] = color->a / 255.0f; } } }