Fix regression

Scroll attenuation seems to disable ambient fog. If scroll attenuation is enabled it's telling the h/w to draw the real3d spot light on fog for the scroll fog layer. This should fix a regression where the background disappears on sega rally.
This commit is contained in:
Ian Curtis 2023-11-09 18:41:57 +00:00
parent a8976b51a2
commit f9a0901e8c

View file

@ -236,6 +236,10 @@ void CNew3D::DrawAmbientFog()
continue; continue;
} }
if (n.viewport.scrollAtt > 0.0f) {
continue; // scroll attenuation indicates scroll fog layer
}
if (n.viewport.fogParams[6] < fogAmbient) { if (n.viewport.fogParams[6] < fogAmbient) {
nodePtr = &n; nodePtr = &n;
fogAmbient = n.viewport.fogParams[6]; fogAmbient = n.viewport.fogParams[6];