Updated UniGLTF

This commit is contained in:
ousttrue
2018-06-21 22:20:49 +09:00
parent e60723ba31
commit b8b3066513
4 changed files with 5 additions and 5 deletions

View File

@@ -410,7 +410,7 @@ namespace VRM
for (int i = 0; i < context.GLTF.textures.Count; ++i)
{
var x = new TextureItem(context.GLTF, i);
x.Process(storage);
x.Process(context.GLTF, storage);
context.Textures.Add(x);
yield return null;
}
@@ -562,7 +562,7 @@ namespace VRM
() =>
{
var texture = new TextureItem(ctx.GLTF, index);
texture.Process(ctx.Storage);
texture.Process(ctx.GLTF, ctx.Storage);
return texture;
})
.ContinueWith(Scheduler.ThreadPool, x => ctx.Textures.Add(x));

View File

@@ -58,7 +58,7 @@ namespace VRM
if(gltfMeta.texture >= 0 && gltfMeta.texture < VRM.textures.Count)
{
var t = new TextureItem(VRM, gltfMeta.texture);
t.Process(Storage);
t.Process(VRM, Storage);
meta.Thumbnail=t.Texture;
}
}

View File

@@ -98,7 +98,7 @@ namespace VRM
return materials;
}
public static glTF_VRM_Material CreateFromMaterial(Material m, List<Texture2D> textures)
public static glTF_VRM_Material CreateFromMaterial(Material m, List<Texture> textures)
{
var material = new glTF_VRM_Material
{

Submodule UniGLTF updated: 673a003669...debe1dcbe0