Przeglądaj źródła

fixed the vertex alpha

Asad M. Zaman 20 lat temu
rodzic
commit
f45e192715
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      pandatool/src/mayaegg/mayaToEggConverter.cxx

+ 1 - 1
pandatool/src/mayaegg/mayaToEggConverter.cxx

@@ -1839,7 +1839,7 @@ make_polyset(MayaNodeDesc *node_desc, const MDagPath &dag_path,
             // The vertex color is a color scale that modifies the
             // The vertex color is a color scale that modifies the
             // polygon color, not an override that replaces it.
             // polygon color, not an override that replaces it.
             vert.set_color(Colorf(c.r * poly_color[0], c.g * poly_color[1],
             vert.set_color(Colorf(c.r * poly_color[0], c.g * poly_color[1],
-                                  c.b * poly_color[2], poly_color[3]));
+                                  c.b * poly_color[2], c.a * poly_color[3]));
           }
           }
         } else {
         } else {
           vert.set_color(poly_color);
           vert.set_color(poly_color);