Browse Source

Fixed a bug in glow map generation

Josh Yelon 17 years ago
parent
commit
3f69740ab9
1 changed files with 3 additions and 0 deletions
  1. 3 0
      panda/src/pgraph/shaderGenerator.cxx

+ 3 - 0
panda/src/pgraph/shaderGenerator.cxx

@@ -174,6 +174,9 @@ analyze_renderstate(const RenderState *rs) {
       _calc_primary_alpha = true;
       _calc_primary_alpha = true;
       _out_primary_glow = true;
       _out_primary_glow = true;
       _subsume_alpha_test = true;
       _subsume_alpha_test = true;
+    } else {
+      _calc_primary_alpha = false;
+      _out_primary_glow = true;
     }
     }
   } else {
   } else {
     if (_have_alpha_blend || _have_alpha_test) {
     if (_have_alpha_blend || _have_alpha_test) {