Browse Source

this saves the redundant lighting stage

Asad M. Zaman 20 years ago
parent
commit
7d3829ceb6
1 changed files with 4 additions and 0 deletions
  1. 4 0
      pandatool/src/mayaegg/mayaToEggConverter.cxx

+ 4 - 0
pandatool/src/mayaegg/mayaToEggConverter.cxx

@@ -2340,6 +2340,10 @@ set_shader_attributes(EggPrimitive &primitive, const MayaShader &shader,
       }
       }
     }
     }
   }
   }
+
+  // we don't want an extra light stage for interpolate mode, it takes care of automatically
+  if (is_interpolate)
+    is_decal = false;
   
   
   // new decal mode needs an extra dummy layers of textureStage
   // new decal mode needs an extra dummy layers of textureStage
   EggTexture *dummy_tex = (EggTexture *)NULL;
   EggTexture *dummy_tex = (EggTexture *)NULL;