port: fix SHADE_ALPHA with fog again

This commit is contained in:
fgsfds 2023-08-16 02:15:04 +02:00
parent 2b5e136cc0
commit 7a4edd6ef7
1 changed files with 1 additions and 6 deletions

View File

@ -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;
}
}
}