mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-09-09 20:38:56 -05:00
Updated UniGLTF
This commit is contained in:
@@ -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));
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
2
UniGLTF
2
UniGLTF
Submodule UniGLTF updated: 673a003669...debe1dcbe0
Reference in New Issue
Block a user