mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-05-23 03:16:12 -05:00
Updated UniGLTF
This commit is contained in:
parent
da735694bf
commit
ef7252fe4d
|
|
@ -108,7 +108,7 @@ namespace VRM
|
|||
gltf.extensions.VRM.meta.title = meta.Title;
|
||||
if (meta.Thumbnail != null)
|
||||
{
|
||||
gltf.extensions.VRM.meta.texture = TextureIO.ExportTexture(gltf, gltf.buffers.Count - 1, meta.Thumbnail);
|
||||
gltf.extensions.VRM.meta.texture = TextureIO.ExportTexture(gltf, gltf.buffers.Count - 1, meta.Thumbnail, false);
|
||||
}
|
||||
gltf.extensions.VRM.meta.licenseType = meta.LicenseType;
|
||||
gltf.extensions.VRM.meta.otherLicenseUrl = meta.OtherLicenseUrl;
|
||||
|
|
@ -130,7 +130,7 @@ namespace VRM
|
|||
gltf.extensions.VRM.meta.title = meta.Title;
|
||||
if (meta.Thumbnail != null)
|
||||
{
|
||||
gltf.extensions.VRM.meta.texture = TextureIO.ExportTexture(gltf, gltf.buffers.Count - 1, meta.Thumbnail);
|
||||
gltf.extensions.VRM.meta.texture = TextureIO.ExportTexture(gltf, gltf.buffers.Count - 1, meta.Thumbnail, false);
|
||||
}
|
||||
|
||||
// ussage pemission
|
||||
|
|
|
|||
|
|
@ -109,15 +109,6 @@ namespace VRM
|
|||
var prop = PreShaderPropExporter.GetPropsForSupportedShader(m.shader.name);
|
||||
if (prop == null)
|
||||
{
|
||||
#if UNITY_EDITOR
|
||||
// fallback
|
||||
Debug.LogWarningFormat("Unsupported shader: {0}", m.shader.name);
|
||||
prop = ShaderProps.FromShader(m.shader);
|
||||
#endif
|
||||
}
|
||||
|
||||
if (prop == null)
|
||||
{
|
||||
Debug.LogWarningFormat("Fail to export shader: {0}", m.shader.name);
|
||||
}
|
||||
else
|
||||
|
|
|
|||
2
UniGLTF
2
UniGLTF
|
|
@ -1 +1 @@
|
|||
Subproject commit c481c92e0bef78ef8920e28343fdbbba5a04fdad
|
||||
Subproject commit 826dbf00f6ec734c460d17b297ef5d5cc453fd24
|
||||
Loading…
Reference in New Issue
Block a user