From 742c38ec7ed3ae4648bcf420e2203a7a65f26871 Mon Sep 17 00:00:00 2001 From: Evan Hemsley Date: Tue, 28 Jul 2020 03:05:59 -0700 Subject: [PATCH] forgot to set texcoords lol --- Importer.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Importer.cs b/Importer.cs index 1b651bd..883b143 100644 --- a/Importer.cs +++ b/Importer.cs @@ -40,6 +40,12 @@ namespace Smuggler var normal = normalAccessor[i]; normals[i] = -new Vector3(normal.X, normal.Z, normal.Y); } + + for (int i = 0; i < texcoords.Length; i++) + { + var texcoord = texcoordAccessor[i]; + texcoords[i] = new Vector2(texcoord.X, texcoord.Y); + } foreach (var (a, b, c) in primitive.GetTriangleIndices()) {