Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MeshVertexのdefault colorをwhiteにした #1445

Merged
merged 1 commit into from Dec 27, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions Assets/UniGLTF/Runtime/UniGLTF/IO/MeshIO/MeshContext.cs
Expand Up @@ -142,7 +142,7 @@ public void ImportMeshIndependentVertexBuffer(GltfData data, glTFMesh gltfMesh,
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,
Expand Down Expand Up @@ -275,7 +275,7 @@ public void ImportMeshSharingVertexBuffer(GltfData data, glTFMesh gltfMesh, IAxi
}

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);

Expand Down