forked from Ports/perfect_dark
port: fix SHADE_ALPHA with fog again
This commit is contained in:
1 parent
2b5e136cc0
commit
7a4edd6ef7
1 file changed
+1
-6
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user