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.
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.