Fix fog being applied to coins

This commit is contained in:
Sean Maas 2022-05-14 12:15:08 -04:00
parent aba3f2d946
commit 07984221e8
1 changed files with 2 additions and 2 deletions

View File

@ -270,9 +270,9 @@ static void draw_vertices(const Vtx_t **v, int count) {
}
if (geometry_mode & G_ZBUFFER) {
// Apply fog to polygons with it enabled, and IA textures because they look bad otherwise
// Apply fog to polygons with it enabled, and some IA textures that look bad otherwise
int fmt = poly_fmt | POLY_ALPHA(alpha) | POLY_ID(polygon_id);
if ((geometry_mode & G_FOG) || ((glGetTexParameter() >> 26) & 0x7) == GL_RGB8_A5)
if ((geometry_mode & G_FOG) || (((glGetTexParameter() >> 26) & 0x7) == GL_RGB8_A5 && alpha < 31))
fmt |= POLY_FOG;
// Apply the polygon attributes