kirides / GD3D11

D3D11-Renderer for Gothic and Gothic 2
GNU General Public License v3.0
202 stars 18 forks source link

Fixed foam of waterfalls #110

Closed ThielHater closed 2 years ago

ThielHater commented 2 years ago

For some reason, key.Texture->HasAlphaChannel() returns false the first time it encounters OWODWFALL_HITSURFACE_A0 or OWODWFALL_STONE_A0 and true after that. I removed this check as AdditionalCheckWaterFall() is more restrictive anyway. Of course comparing strings takes longer than a bool but the parent function is called once a level is loaded, therefore this shouldn't have any noticable performance impact. Finally I changed zMAT_ALPHA_FUNC_TEST to zMAT_ALPHA_FUNC_BLEND, which looks better.

grafik

ThielHater commented 2 years ago

I just checked that the waterfalls in Gothic 2 are still working. 👍