mirror of
https://github.com/RetroDECK/Supermodel.git
synced 2024-11-26 07:35:40 +00:00
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:
parent
a8976b51a2
commit
f9a0901e8c
|
@ -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];
|
||||||
|
|
Loading…
Reference in a new issue