From 319b3315534637dcd2f7d0d82439279e253323e9 Mon Sep 17 00:00:00 2001 From: rdb Date: Sun, 11 Mar 2018 16:40:21 +0100 Subject: [PATCH] ShaderGenerator: fix M_modulate_gloss regression It was mapping the alpha channel of M_modulate_gloss to the glow channel. --- panda/src/pgraphnodes/shaderGenerator.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/panda/src/pgraphnodes/shaderGenerator.cxx b/panda/src/pgraphnodes/shaderGenerator.cxx index f741b02db8..372bd89e1d 100644 --- a/panda/src/pgraphnodes/shaderGenerator.cxx +++ b/panda/src/pgraphnodes/shaderGenerator.cxx @@ -344,7 +344,7 @@ analyze_renderstate(ShaderKey &key, const RenderState *rs) { case TextureStage::M_modulate_gloss: if (shader_attrib->auto_gloss_on()) { - info._flags = ShaderKey::TF_map_glow; + info._flags = ShaderKey::TF_map_gloss; } else { info._mode = TextureStage::M_modulate; info._flags = ShaderKey::TF_has_rgb;