MeshVertexのdefault colorをwhiteにした

This commit is contained in:
notargs
2021-12-27 19:52:01 +09:00
parent bf52dbcc35
commit 302fd612fb

View File

@@ -142,7 +142,7 @@ namespace UniGLTF
var joints = jointsGetter?.Invoke(i) ?? (0, 0, 0, 0);
var weights = weightsGetter != null ? NormalizeBoneWeight(weightsGetter(i)) : (0, 0, 0, 0);
var color = colors != null ? colors[i] : Color.black;
var color = colors != null ? colors[i] : Color.white;
_vertices.Add(
new MeshVertex(
position,
@@ -275,7 +275,7 @@ namespace UniGLTF
}
var texCoord1 = texCoords1 != null ? texCoords1[i].ReverseUV() : Vector2.zero;
var color = colors != null ? colors[i] : Color.black;
var color = colors != null ? colors[i] : Color.white;
var joints = jointsGetter?.Invoke(i) ?? (0, 0, 0, 0);
var weights = weightsGetter != null ? NormalizeBoneWeight(weightsGetter(i)) : (0, 0, 0, 0);