OpenSWE1R / openswe1r

An Open-Source port of the 1999 Game "Star Wars Episode 1: Racer"
https://openswe1r.github.io/
GNU General Public License v2.0
315 stars 26 forks source link

Alpha test is not hiding all rendering artefacts of engine smoke #105

Open JayFoxRox opened 6 years ago

JayFoxRox commented 6 years ago

The engine smoke is written to the depth-buffer, even if it's almost completly transparent. Therefore, other parts behind it, which are rendered later (like part of the podracer) will be invisible.

The alpha-test hides some of it where the alpha is exactly 0x00, but the artefacts still remain in large regions behind the engines. Alpha-test was implemented in #99 and the issue is also described in more detail there.

Another possibility why this happens could be due to a bad color modulation / blending operation. There is also #56 which might be responsible. So it should be re-checked once that is fixed.

Note: The respective feature has to be turned on in the games Video settings