Skip to content
This repository has been archived by the owner on Mar 30, 2019. It is now read-only.

Commit

Permalink
ModelCompiler Bug Fix
Browse files Browse the repository at this point in the history
Fixed a bug where the ModelCompiler would create a vertex layout with
duplicated Normal0 semantics when Assimp.Net loaded a Scene which
included both Vertex Colors and Normal Data.
  • Loading branch information
dazerdude committed Jul 23, 2013
1 parent 36e5bd9 commit d255e50
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,7 @@ private ModelData.MeshPart Process(ModelData.Mesh mesh, Assimp.Mesh assimpMesh)
{
if (assimpMesh.HasVertexColors(i))
{
layout.Add(VertexElement.Normal(localIndex, Format.R32G32B32A32_Float, vertexBufferElementSize));
layout.Add(VertexElement.Color(localIndex, Format.R32G32B32A32_Float, vertexBufferElementSize));
vertexBufferElementSize += Utilities.SizeOf<SharpDX.Color4>();
localIndex++;
}
Expand Down

0 comments on commit d255e50

Please sign in to comment.