mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-05-16 07:34:05 -05:00
Merge pull request #2373 from Santarh/disassemblyVrmShaders6
Move unity resource IO definitions from VRMShaders to UniGLTF
This commit is contained in:
commit
d6699b56dc
|
|
@ -2,7 +2,6 @@ using System;
|
|||
using System.Collections.Generic;
|
||||
using UnityEditor;
|
||||
using UnityEngine;
|
||||
using VRMShaders;
|
||||
|
||||
namespace UniGLTF
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,9 +1,7 @@
|
|||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using UnityEditor;
|
||||
using UnityEngine;
|
||||
using VRMShaders;
|
||||
|
||||
namespace UniGLTF
|
||||
{
|
||||
|
|
|
|||
3
Assets/UniGLTF/Editor/UniGLTF/IO.meta
Normal file
3
Assets/UniGLTF/Editor/UniGLTF/IO.meta
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 8e700c0746b947c28cb2436d9111fcaa
|
||||
timeCreated: 1721484195
|
||||
|
|
@ -3,7 +3,7 @@ using System.Reflection;
|
|||
using UnityEditor;
|
||||
using UnityEngine;
|
||||
|
||||
namespace VRMShaders
|
||||
namespace UniGLTF
|
||||
{
|
||||
internal static class EditorTextureUtility
|
||||
{
|
||||
|
|
@ -3,7 +3,7 @@ using System.IO;
|
|||
using UnityEditor;
|
||||
using UnityEngine;
|
||||
|
||||
namespace VRMShaders
|
||||
namespace UniGLTF
|
||||
{
|
||||
public sealed class EditorTextureSerializer : ITextureSerializer
|
||||
{
|
||||
|
|
@ -3,8 +3,7 @@ using System.Collections.Generic;
|
|||
using UnityEditor;
|
||||
using UnityEngine;
|
||||
|
||||
|
||||
namespace VRMShaders
|
||||
namespace UniGLTF
|
||||
{
|
||||
public static class TextureImporterConfigurator
|
||||
{
|
||||
|
|
@ -2,8 +2,7 @@ using UnityEditor;
|
|||
using UnityEngine;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Collections.Generic;
|
||||
using VRMShaders;
|
||||
|
||||
#if UNITY_2020_2_OR_NEWER
|
||||
using UnityEditor.AssetImporters;
|
||||
#else
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
using UnityEngine;
|
||||
using System.Linq;
|
||||
using VRMShaders;
|
||||
|
||||
#if UNITY_2020_2_OR_NEWER
|
||||
using UnityEditor.AssetImporters;
|
||||
#else
|
||||
|
|
|
|||
|
|
@ -1,13 +1,12 @@
|
|||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using UnityEditor;
|
||||
using UnityEngine;
|
||||
|
||||
#if UNITY_2020_1_OR_NEWER
|
||||
using UnityEditor.AssetImporters;
|
||||
#else
|
||||
using UnityEditor.Experimental.AssetImporters;
|
||||
#endif
|
||||
using UnityEngine;
|
||||
using VRMShaders;
|
||||
|
||||
namespace UniGLTF
|
||||
{
|
||||
|
|
|
|||
|
|
@ -3,13 +3,13 @@ using System.Collections.Generic;
|
|||
using System.IO;
|
||||
using System.Linq;
|
||||
using UnityEditor;
|
||||
using UnityEngine;
|
||||
|
||||
#if UNITY_2020_1_OR_NEWER
|
||||
using UnityEditor.AssetImporters;
|
||||
#else
|
||||
using UnityEditor.Experimental.AssetImporters;
|
||||
#endif
|
||||
using UnityEngine;
|
||||
using VRMShaders;
|
||||
|
||||
namespace UniGLTF
|
||||
{
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ using System.IO;
|
|||
using System.Linq;
|
||||
using UnityEditor;
|
||||
using UnityEngine;
|
||||
using VRMShaders;
|
||||
|
||||
#if UNITY_2020_2_OR_NEWER
|
||||
using UnityEditor.AssetImporters;
|
||||
#else
|
||||
|
|
|
|||
|
|
@ -1,13 +1,13 @@
|
|||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using UnityEditor;
|
||||
using UnityEngine;
|
||||
|
||||
#if UNITY_2020_1_OR_NEWER
|
||||
using UnityEditor.AssetImporters;
|
||||
#else
|
||||
using UnityEditor.Experimental.AssetImporters;
|
||||
#endif
|
||||
using UnityEngine;
|
||||
using VRMShaders;
|
||||
|
||||
namespace UniGLTF
|
||||
{
|
||||
|
|
|
|||
|
|
@ -3,9 +3,7 @@ using System.Collections.Generic;
|
|||
using System.IO;
|
||||
using UnityEngine;
|
||||
using UnityEditor;
|
||||
using UniGLTF;
|
||||
using System.Linq;
|
||||
using VRMShaders;
|
||||
|
||||
namespace UniGLTF
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
using System;
|
||||
using UnityEngine;
|
||||
using ColorSpace = VRMShaders.ColorSpace;
|
||||
|
||||
namespace UniGLTF
|
||||
{
|
||||
|
|
|
|||
|
|
@ -2,7 +2,6 @@
|
|||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
using UnityEngine;
|
||||
using VRMShaders;
|
||||
|
||||
namespace UniGLTF.MeshUtility
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,7 +1,5 @@
|
|||
using UnityEngine;
|
||||
using System.Linq;
|
||||
using VRMShaders;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -2,8 +2,6 @@ using System;
|
|||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UIElements;
|
||||
using VRMShaders;
|
||||
|
||||
namespace UniGLTF.MeshUtility
|
||||
{
|
||||
|
|
|
|||
|
|
@ -0,0 +1,3 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 44c184c5fb704e08b064c515409d4d9e
|
||||
timeCreated: 1721483589
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 3d3b03f6cf8e4923a3f7e5f90db85b57
|
||||
timeCreated: 1721483585
|
||||
|
|
@ -4,7 +4,7 @@ using System.Linq;
|
|||
using System.Threading.Tasks;
|
||||
using UnityEngine;
|
||||
|
||||
namespace VRMShaders
|
||||
namespace UniGLTF
|
||||
{
|
||||
public class AnimationClipFactory : IResponsibilityForDestroyObjects
|
||||
{
|
||||
|
|
@ -3,7 +3,6 @@ using System.Linq;
|
|||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
using UnityEngine;
|
||||
using VRMShaders;
|
||||
|
||||
namespace UniGLTF
|
||||
{
|
||||
|
|
@ -346,11 +345,11 @@ namespace UniGLTF
|
|||
});
|
||||
}
|
||||
|
||||
public static IEnumerable<VRMShaders.SubAssetKey> EnumerateSubAssetKeys(glTF gltf)
|
||||
public static IEnumerable<SubAssetKey> EnumerateSubAssetKeys(glTF gltf)
|
||||
{
|
||||
foreach (var gltfAnimation in gltf.animations)
|
||||
{
|
||||
yield return new VRMShaders.SubAssetKey(typeof(AnimationClip), gltfAnimation.name);
|
||||
yield return new SubAssetKey(typeof(AnimationClip), gltfAnimation.name);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
using System;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace VRMShaders
|
||||
namespace UniGLTF
|
||||
{
|
||||
/// <summary>
|
||||
/// ImporterContext の 非同期実行 LoadAsync を補助する。
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 9cd79193a3dfa7148bb76882f4988071
|
||||
guid: b381854307ab2814fbed3675a370b2e2
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
using System;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace VRMShaders
|
||||
namespace UniGLTF
|
||||
{
|
||||
/// <summary>
|
||||
/// 同期実行
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 30f43d5b7d6b4184fb775a315b835365
|
||||
guid: 7ef2aac87a2c64f4da10574f463ce6e5
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
|
@ -2,7 +2,7 @@
|
|||
using UnityEngine;
|
||||
using Object = UnityEngine.Object;
|
||||
|
||||
namespace VRMShaders
|
||||
namespace UniGLTF
|
||||
{
|
||||
internal sealed class NextFrameTaskScheduler
|
||||
{
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 8782dbc36975e6848870c8a238b85c65
|
||||
timeCreated: 1634203513
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
using System;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace VRMShaders
|
||||
namespace UniGLTF
|
||||
{
|
||||
/// <summary>
|
||||
/// Runtime (Build 後と、Editor Playing) での非同期ロードを実現する AwaitCaller.
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
fileFormatVersion: 2
|
||||
guid: ce49957c7e15bea4ba3025c536fcbff7
|
||||
timeCreated: 1634203216
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
using System;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace VRMShaders
|
||||
namespace UniGLTF
|
||||
{
|
||||
/// <summary>
|
||||
/// Runtime (Build 後と、Editor Playing) での非同期ロードを実現する AwaitCaller.
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 6d3630f9fecf62f4a8137907b0f7beb2
|
||||
guid: c03c79777091593448c34eb4dfd35300
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
using System;
|
||||
using System.Collections.Concurrent;
|
||||
|
||||
namespace VRMShaders
|
||||
namespace UniGLTF
|
||||
{
|
||||
internal sealed class TinyManagedTaskScheduler
|
||||
{
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 200218a9545e455468caf9c92e92b114
|
||||
timeCreated: 1634203919
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
namespace VRMShaders
|
||||
namespace UniGLTF
|
||||
{
|
||||
public enum ColorSpace
|
||||
{
|
||||
|
|
@ -1,3 +1,3 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 5e97eeb2080e43e18ba57f1a3820a7e6
|
||||
fileFormatVersion: 2
|
||||
guid: 5e97eeb2080e43e18ba57f1a3820a7e6
|
||||
timeCreated: 1620901197
|
||||
|
|
@ -2,7 +2,6 @@ using System;
|
|||
using System.IO;
|
||||
using System.Threading.Tasks;
|
||||
using UnityEngine;
|
||||
using VRMShaders;
|
||||
|
||||
namespace UniGLTF
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
using System;
|
||||
|
||||
namespace VRMShaders
|
||||
namespace UniGLTF
|
||||
{
|
||||
public delegate void TakeResponsibilityForDestroyObjectFunc(SubAssetKey key, UnityEngine.Object obj);
|
||||
|
||||
|
|
@ -4,7 +4,6 @@ using System.Collections.Generic;
|
|||
using UnityEngine;
|
||||
using System.Threading.Tasks;
|
||||
using UnityEngine.Profiling;
|
||||
using VRMShaders;
|
||||
|
||||
namespace UniGLTF
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
using System;
|
||||
using UnityEngine;
|
||||
using VRMShaders;
|
||||
|
||||
namespace UniGLTF
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
using UnityEngine;
|
||||
using VRMShaders;
|
||||
|
||||
namespace UniGLTF
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,7 +1,5 @@
|
|||
using System;
|
||||
using UnityEngine;
|
||||
using VRMShaders;
|
||||
using ColorSpace = VRMShaders.ColorSpace;
|
||||
|
||||
namespace UniGLTF
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,7 +1,5 @@
|
|||
using System;
|
||||
using UnityEngine;
|
||||
using VRMShaders;
|
||||
using ColorSpace = VRMShaders.ColorSpace;
|
||||
|
||||
namespace UniGLTF
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,8 +1,6 @@
|
|||
using System;
|
||||
using System.Linq;
|
||||
using UnityEngine;
|
||||
using VRMShaders;
|
||||
using ColorSpace = VRMShaders.ColorSpace;
|
||||
|
||||
namespace UniGLTF
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,8 +1,6 @@
|
|||
using System;
|
||||
using UniGLTF.UniUnlit;
|
||||
using UnityEngine;
|
||||
using VRMShaders;
|
||||
using ColorSpace = VRMShaders.ColorSpace;
|
||||
|
||||
namespace UniGLTF
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,8 +1,6 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using VRMShaders;
|
||||
|
||||
|
||||
namespace UniGLTF
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using VRMShaders;
|
||||
|
||||
namespace UniGLTF
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,9 +1,6 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using UnityEngine;
|
||||
using VRMShaders;
|
||||
using ColorSpace = VRMShaders.ColorSpace;
|
||||
|
||||
namespace UniGLTF
|
||||
{
|
||||
|
|
|
|||
|
|
@ -2,8 +2,6 @@
|
|||
using System.Collections.Generic;
|
||||
using UniGLTF.UniUnlit;
|
||||
using UnityEngine;
|
||||
using VRMShaders;
|
||||
using ColorSpace = VRMShaders.ColorSpace;
|
||||
|
||||
namespace UniGLTF
|
||||
{
|
||||
|
|
|
|||
3
Assets/UniGLTF/Runtime/UniGLTF/IO/MaterialIO/Export.meta
Normal file
3
Assets/UniGLTF/Runtime/UniGLTF/IO/MaterialIO/Export.meta
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
fileFormatVersion: 2
|
||||
guid: c361a1fc6032467aa77f6ecc470d4503
|
||||
timeCreated: 1721483918
|
||||
|
|
@ -1,5 +1,4 @@
|
|||
using UnityEngine;
|
||||
using VRMShaders;
|
||||
|
||||
namespace UniGLTF
|
||||
{
|
||||
|
|
@ -1,3 +1,3 @@
|
|||
fileFormatVersion: 2
|
||||
guid: afbe933c51a9404199ba1efe6d2f8c62
|
||||
fileFormatVersion: 2
|
||||
guid: afbe933c51a9404199ba1efe6d2f8c62
|
||||
timeCreated: 1622015749
|
||||
3
Assets/UniGLTF/Runtime/UniGLTF/IO/MaterialIO/Import.meta
Normal file
3
Assets/UniGLTF/Runtime/UniGLTF/IO/MaterialIO/Import.meta
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
fileFormatVersion: 2
|
||||
guid: d488314aa2e44b84b3ff5348cf2f3b08
|
||||
timeCreated: 1721483827
|
||||
|
|
@ -1,5 +1,4 @@
|
|||
using UnityEngine;
|
||||
using ColorSpace = VRMShaders.ColorSpace;
|
||||
|
||||
namespace UniGLTF
|
||||
{
|
||||
|
|
@ -50,7 +49,7 @@ namespace UniGLTF
|
|||
|
||||
if (data.MigrationFlags.IsEmissiveFactorGamma)
|
||||
{
|
||||
return emissiveFactor.ToColor3(VRMShaders.ColorSpace.sRGB, VRMShaders.ColorSpace.Linear);
|
||||
return emissiveFactor.ToColor3(ColorSpace.sRGB, ColorSpace.Linear);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
@ -1,6 +1,4 @@
|
|||
using VRMShaders;
|
||||
|
||||
namespace UniGLTF
|
||||
namespace UniGLTF
|
||||
{
|
||||
/// <summary>
|
||||
/// 指定の index の glTFMaterial から Import できる Material の生成情報を生成する。
|
||||
|
|
@ -1,3 +1,3 @@
|
|||
fileFormatVersion: 2
|
||||
guid: c309fb8ee8534a54b291d408511c9331
|
||||
fileFormatVersion: 2
|
||||
guid: c309fb8ee8534a54b291d408511c9331
|
||||
timeCreated: 1622015740
|
||||
|
|
@ -2,7 +2,7 @@
|
|||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
namespace VRMShaders
|
||||
namespace UniGLTF
|
||||
{
|
||||
public sealed class MaterialDescriptor
|
||||
{
|
||||
|
|
@ -3,8 +3,7 @@ using System.Collections.Generic;
|
|||
using System.Threading.Tasks;
|
||||
using UnityEngine;
|
||||
|
||||
|
||||
namespace VRMShaders
|
||||
namespace UniGLTF
|
||||
{
|
||||
public delegate Task<Texture> GetTextureAsyncFunc(TextureDescriptor texDesc, IAwaitCaller awaitCaller);
|
||||
|
||||
|
|
@ -1,6 +1,4 @@
|
|||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using VRMShaders;
|
||||
|
||||
namespace UniGLTF
|
||||
{
|
||||
|
|
@ -1,7 +1,6 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using VRMShaders;
|
||||
|
||||
namespace UniGLTF
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,8 +1,6 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using VRMShaders;
|
||||
using ColorSpace = VRMShaders.ColorSpace;
|
||||
|
||||
namespace UniGLTF
|
||||
{
|
||||
|
|
|
|||
|
|
@ -2,8 +2,6 @@ using System;
|
|||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
using UnityEngine;
|
||||
using VRMShaders;
|
||||
|
||||
|
||||
namespace UniGLTF
|
||||
{
|
||||
|
|
|
|||
|
|
@ -4,7 +4,6 @@ using System.Threading.Tasks;
|
|||
using UnityEngine;
|
||||
using UnityEngine.Profiling;
|
||||
using UnityEngine.Rendering;
|
||||
using VRMShaders;
|
||||
|
||||
namespace UniGLTF
|
||||
{
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ using UnityEngine;
|
|||
using UnityEditor;
|
||||
#endif
|
||||
|
||||
namespace VRMShaders
|
||||
namespace UniGLTF
|
||||
{
|
||||
/// <summary>
|
||||
/// UniGLTF.UnityPath (Assets の ひとつ上がルート) をすべてのパスが扱えるように拡張するのが趣旨。
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
using System;
|
||||
using UnityEngine;
|
||||
|
||||
namespace VRMShaders
|
||||
namespace UniGLTF
|
||||
{
|
||||
/// <summary>
|
||||
/// UnityEditor.Experimental.AssetImporter.SourceAssetIdentifier に対応する
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
namespace VRMShaders
|
||||
namespace UniGLTF
|
||||
{
|
||||
public static class Symbols
|
||||
{
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
using UnityEngine;
|
||||
|
||||
namespace VRMShaders
|
||||
namespace UniGLTF
|
||||
{
|
||||
public static class NormalConverter
|
||||
{
|
||||
|
|
@ -2,7 +2,7 @@ using System;
|
|||
using System.Linq;
|
||||
using UnityEngine;
|
||||
|
||||
namespace VRMShaders
|
||||
namespace UniGLTF
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
|
|
@ -2,7 +2,7 @@ using System;
|
|||
using System.Linq;
|
||||
using UnityEngine;
|
||||
|
||||
namespace VRMShaders
|
||||
namespace UniGLTF
|
||||
{
|
||||
public static class TextureConverter
|
||||
{
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user