Kaynağa Gözat

fixed vertex color support

Nicolas Cannasse 11 yıl önce
ebeveyn
işleme
509ae4517b
1 değiştirilmiş dosya ile 2 ekleme ve 4 silme
  1. 2 4
      hxd/fmt/fbx/Library.hx

+ 2 - 4
hxd/fmt/fbx/Library.hx

@@ -876,10 +876,8 @@ class Library {
 						continue;
 					}
 					var mat = textureLoader(tex.get("FileName").props[0].toString(),mat);
-					if( vcolor && allowVertexColor ) {
-						throw "TODO";
-						//mat.hasVertexColor = true;
-					}
+					if( vcolor && allowVertexColor )
+						mat.mainPass.addShader(new h3d.shader.VertexColor());
 					tmats.push(mat);
 					lastAdded = tmats.length;
 				}