forgot to set texcoords lol
parent
1a80f6cdd5
commit
742c38ec7e
|
@ -40,6 +40,12 @@ namespace Smuggler
|
||||||
var normal = normalAccessor[i];
|
var normal = normalAccessor[i];
|
||||||
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())
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue