forgot to set texcoords lol
parent
1a80f6cdd5
commit
742c38ec7e
|
@ -41,6 +41,12 @@ namespace Smuggler
|
||||||
normals[i] = -new Vector3(normal.X, normal.Z, normal.Y);
|
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())
|
foreach (var (a, b, c) in primitive.GetTriangleIndices())
|
||||||
{
|
{
|
||||||
triangles.Add(new Triangle(a, b, c));
|
triangles.Add(new Triangle(a, b, c));
|
||||||
|
|
Loading…
Reference in New Issue