Browse Source

ShaderGenerator: fix M_modulate_gloss regression

It was mapping the alpha channel of M_modulate_gloss to the glow channel.
rdb 7 years ago
parent
commit
319b331553
1 changed files with 1 additions and 1 deletions
  1. 1 1
      panda/src/pgraphnodes/shaderGenerator.cxx

+ 1 - 1
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;