Skip to content

Commit

Permalink
Use texcoord min/max.
Browse files Browse the repository at this point in the history
  • Loading branch information
Doerge committed Jan 19, 2021
1 parent fc30fce commit a620be3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions glTF-BinExporter/glTF/GlTFRootModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -664,8 +664,8 @@ public void AddRhinoObject(Rhino.Geometry.Mesh[] rhinoMeshes, Rhino.DocObjects.M
{
bufferView = texCoordsBufferViewIdx,
count = rhinoMesh.TextureCoordinates.Count,
min = new float[] { 0.0f, 0.0f },
max = new float[] { 1.0f, 1.0f },
min = new float[] { (float)texCoordsMin.X, (float)texCoordsMin.Y },
max = new float[] { (float)texCoordsMax.X, (float)texCoordsMax.Y }
};
int texCoordsAccessorIdx = accessors.AddAndReturnIndex(texCoordsAccessor);

Expand Down

0 comments on commit a620be3

Please sign in to comment.