mirror of
https://github.com/n64decomp/sm64
synced 2026-04-29 02:23:43 +00:00
Only apply fog to polygons with it enabled
This commit is contained in:
parent
e2f05bcea5
commit
aba3f2d946
|
|
@ -270,9 +270,9 @@ static void draw_vertices(const Vtx_t **v, int count) {
|
|||
}
|
||||
|
||||
if (geometry_mode & G_ZBUFFER) {
|
||||
// Apply fog to opaque polygons, and IA textures because they look bad otherwise
|
||||
// Apply fog to polygons with it enabled, and IA textures because they look bad otherwise
|
||||
int fmt = poly_fmt | POLY_ALPHA(alpha) | POLY_ID(polygon_id);
|
||||
if (alpha == 31 || ((glGetTexParameter() >> 26) & 0x7) == GL_RGB8_A5)
|
||||
if ((geometry_mode & G_FOG) || ((glGetTexParameter() >> 26) & 0x7) == GL_RGB8_A5)
|
||||
fmt |= POLY_FOG;
|
||||
|
||||
// Apply the polygon attributes
|
||||
|
|
|
|||
Loading…
Reference in a new issue