ShaderGenerator: fix M_modulate_gloss regression

It was mapping the alpha channel of M_modulate_gloss to the glow channel.
This commit is contained in:
rdb 2018-03-11 16:40:21 +01:00
parent e0f8d7885a
commit 319b331553

View File

@ -344,7 +344,7 @@ analyze_renderstate(ShaderKey &key, const RenderState *rs) {
case TextureStage::M_modulate_gloss: case TextureStage::M_modulate_gloss:
if (shader_attrib->auto_gloss_on()) { if (shader_attrib->auto_gloss_on()) {
info._flags = ShaderKey::TF_map_glow; info._flags = ShaderKey::TF_map_gloss;
} else { } else {
info._mode = TextureStage::M_modulate; info._mode = TextureStage::M_modulate;
info._flags = ShaderKey::TF_has_rgb; info._flags = ShaderKey::TF_has_rgb;