Daemon
Daemon copied to clipboard
TexMods for bundles other than diffusemap/colormap and normalmap are never parsed
This should either be removed as unused (Tess_ComputeTexMatrices calculates matrices for all 5 bundles), or parsing should be added for other bundles.
I don't think any of the GLSL shaders take more than one texture matrix. lightMapping has a second set of tex coords, but there is no matrix at all for them.
The normal map matrix just exists because heat haze uses the "normal map" bundle for its image although it is a standalone, single-texture shader stage.
Perhaps then the texture matrix/texmods should then be made part of shaderStage_t instead.