Gothic-UnZENity-Project / Gothic-UnZENity

Community rebuild of classical Gothic 1 and 2 in Unity engine. Currently focusing on a native VR implementation.
GNU General Public License v3.0
10 stars 2 forks source link

Fix some world chunks getting water shader #147

Closed ThomasMountainborn closed 1 month ago

ThomasMountainborn commented 1 month ago

Turns out that there is a texture that is used both as opaque and as water texture. This fix handles that case correctly by always checking the material group, rather than only checking if a texture name is already included in one of the texture arrays.