浏览代码

ShaderGenerator: fix M_modulate_gloss regression

It was mapping the alpha channel of M_modulate_gloss to the glow channel.
rdb 7 年之前
父节点
当前提交
319b331553
共有 1 个文件被更改,包括 1 次插入1 次删除
  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:
     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;