Merge pull request #2373 from Santarh/disassemblyVrmShaders6

Move unity resource IO definitions from VRMShaders to UniGLTF
This commit is contained in:
Masataka SUMI 2024-07-23 20:04:50 +09:00 committed by GitHub
commit d6699b56dc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
269 changed files with 163 additions and 422 deletions

View File

@ -2,7 +2,6 @@ using System;
using System.Collections.Generic;
using UnityEditor;
using UnityEngine;
using VRMShaders;
namespace UniGLTF
{

View File

@ -1,9 +1,7 @@
using System.Collections.Generic;
using System.IO;
using System.Linq;
using UnityEditor;
using UnityEngine;
using VRMShaders;
namespace UniGLTF
{

View File

@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 8e700c0746b947c28cb2436d9111fcaa
timeCreated: 1721484195

View File

@ -3,7 +3,7 @@ using System.Reflection;
using UnityEditor;
using UnityEngine;
namespace VRMShaders
namespace UniGLTF
{
internal static class EditorTextureUtility
{

View File

@ -3,7 +3,7 @@ using System.IO;
using UnityEditor;
using UnityEngine;
namespace VRMShaders
namespace UniGLTF
{
public sealed class EditorTextureSerializer : ITextureSerializer
{

View File

@ -3,8 +3,7 @@ using System.Collections.Generic;
using UnityEditor;
using UnityEngine;
namespace VRMShaders
namespace UniGLTF
{
public static class TextureImporterConfigurator
{

View File

@ -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

View File

@ -1,6 +1,6 @@
using UnityEngine;
using System.Linq;
using VRMShaders;
#if UNITY_2020_2_OR_NEWER
using UnityEditor.AssetImporters;
#else

View File

@ -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
{

View File

@ -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
{

View File

@ -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

View File

@ -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
{

View File

@ -3,9 +3,7 @@ using System.Collections.Generic;
using System.IO;
using UnityEngine;
using UnityEditor;
using UniGLTF;
using System.Linq;
using VRMShaders;
namespace UniGLTF
{

View File

@ -1,6 +1,5 @@
using System;
using UnityEngine;
using ColorSpace = VRMShaders.ColorSpace;
namespace UniGLTF
{

View File

@ -2,7 +2,6 @@
using System.Collections.Generic;
using System.Threading.Tasks;
using UnityEngine;
using VRMShaders;
namespace UniGLTF.MeshUtility
{

View File

@ -1,7 +1,5 @@
using UnityEngine;
using System.Linq;
using VRMShaders;
using System;
using System.Collections.Generic;

View File

@ -2,8 +2,6 @@ using System;
using System.Collections.Generic;
using System.Linq;
using UnityEngine;
using UnityEngine.UIElements;
using VRMShaders;
namespace UniGLTF.MeshUtility
{

View File

@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 44c184c5fb704e08b064c515409d4d9e
timeCreated: 1721483589

View File

@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 3d3b03f6cf8e4923a3f7e5f90db85b57
timeCreated: 1721483585

View File

@ -4,7 +4,7 @@ using System.Linq;
using System.Threading.Tasks;
using UnityEngine;
namespace VRMShaders
namespace UniGLTF
{
public class AnimationClipFactory : IResponsibilityForDestroyObjects
{

View File

@ -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);
}
}
}

View File

@ -1,7 +1,7 @@
using System;
using System.Threading.Tasks;
namespace VRMShaders
namespace UniGLTF
{
/// <summary>
/// ImporterContext の 非同期実行 LoadAsync を補助する。

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 9cd79193a3dfa7148bb76882f4988071
guid: b381854307ab2814fbed3675a370b2e2
MonoImporter:
externalObjects: {}
serializedVersion: 2

View File

@ -1,7 +1,7 @@
using System;
using System.Threading.Tasks;
namespace VRMShaders
namespace UniGLTF
{
/// <summary>
/// 同期実行

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 30f43d5b7d6b4184fb775a315b835365
guid: 7ef2aac87a2c64f4da10574f463ce6e5
MonoImporter:
externalObjects: {}
serializedVersion: 2

View File

@ -2,7 +2,7 @@
using UnityEngine;
using Object = UnityEngine.Object;
namespace VRMShaders
namespace UniGLTF
{
internal sealed class NextFrameTaskScheduler
{

View File

@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 8782dbc36975e6848870c8a238b85c65
timeCreated: 1634203513

View File

@ -1,7 +1,7 @@
using System;
using System.Threading.Tasks;
namespace VRMShaders
namespace UniGLTF
{
/// <summary>
/// Runtime (Build 後と、Editor Playing) での非同期ロードを実現する AwaitCaller.

View File

@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: ce49957c7e15bea4ba3025c536fcbff7
timeCreated: 1634203216

View File

@ -1,7 +1,7 @@
using System;
using System.Threading.Tasks;
namespace VRMShaders
namespace UniGLTF
{
/// <summary>
/// Runtime (Build 後と、Editor Playing) での非同期ロードを実現する AwaitCaller.

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 6d3630f9fecf62f4a8137907b0f7beb2
guid: c03c79777091593448c34eb4dfd35300
MonoImporter:
externalObjects: {}
serializedVersion: 2

View File

@ -1,7 +1,7 @@
using System;
using System.Collections.Concurrent;
namespace VRMShaders
namespace UniGLTF
{
internal sealed class TinyManagedTaskScheduler
{

View File

@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 200218a9545e455468caf9c92e92b114
timeCreated: 1634203919

View File

@ -1,4 +1,4 @@
namespace VRMShaders
namespace UniGLTF
{
public enum ColorSpace
{

View File

@ -1,3 +1,3 @@
fileFormatVersion: 2
guid: 5e97eeb2080e43e18ba57f1a3820a7e6
fileFormatVersion: 2
guid: 5e97eeb2080e43e18ba57f1a3820a7e6
timeCreated: 1620901197

View File

@ -2,7 +2,6 @@ using System;
using System.IO;
using System.Threading.Tasks;
using UnityEngine;
using VRMShaders;
namespace UniGLTF
{

View File

@ -1,6 +1,6 @@
using System;
namespace VRMShaders
namespace UniGLTF
{
public delegate void TakeResponsibilityForDestroyObjectFunc(SubAssetKey key, UnityEngine.Object obj);

View File

@ -4,7 +4,6 @@ using System.Collections.Generic;
using UnityEngine;
using System.Threading.Tasks;
using UnityEngine.Profiling;
using VRMShaders;
namespace UniGLTF
{

View File

@ -1,6 +1,5 @@
using System;
using UnityEngine;
using VRMShaders;
namespace UniGLTF
{

View File

@ -1,5 +1,4 @@
using UnityEngine;
using VRMShaders;
namespace UniGLTF
{

View File

@ -1,7 +1,5 @@
using System;
using UnityEngine;
using VRMShaders;
using ColorSpace = VRMShaders.ColorSpace;
namespace UniGLTF
{

View File

@ -1,7 +1,5 @@
using System;
using UnityEngine;
using VRMShaders;
using ColorSpace = VRMShaders.ColorSpace;
namespace UniGLTF
{

View File

@ -1,8 +1,6 @@
using System;
using System.Linq;
using UnityEngine;
using VRMShaders;
using ColorSpace = VRMShaders.ColorSpace;
namespace UniGLTF
{

View File

@ -1,8 +1,6 @@
using System;
using UniGLTF.UniUnlit;
using UnityEngine;
using VRMShaders;
using ColorSpace = VRMShaders.ColorSpace;
namespace UniGLTF
{

View File

@ -1,8 +1,6 @@
using System;
using System.Collections.Generic;
using UnityEngine;
using VRMShaders;
namespace UniGLTF
{

View File

@ -1,7 +1,6 @@
using System;
using System.Collections.Generic;
using UnityEngine;
using VRMShaders;
namespace UniGLTF
{

View File

@ -1,9 +1,6 @@
using System;
using System.Collections.Generic;
using System.Linq;
using UnityEngine;
using VRMShaders;
using ColorSpace = VRMShaders.ColorSpace;
namespace UniGLTF
{

View File

@ -2,8 +2,6 @@
using System.Collections.Generic;
using UniGLTF.UniUnlit;
using UnityEngine;
using VRMShaders;
using ColorSpace = VRMShaders.ColorSpace;
namespace UniGLTF
{

View File

@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: c361a1fc6032467aa77f6ecc470d4503
timeCreated: 1721483918

View File

@ -1,3 +1,3 @@
fileFormatVersion: 2
guid: afbe933c51a9404199ba1efe6d2f8c62
fileFormatVersion: 2
guid: afbe933c51a9404199ba1efe6d2f8c62
timeCreated: 1622015749

View File

@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: d488314aa2e44b84b3ff5348cf2f3b08
timeCreated: 1721483827

View File

@ -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
{

View File

@ -1,6 +1,4 @@
using VRMShaders;
namespace UniGLTF
namespace UniGLTF
{
/// <summary>
/// 指定の index の glTFMaterial から Import できる Material の生成情報を生成する。

View File

@ -1,3 +1,3 @@
fileFormatVersion: 2
guid: c309fb8ee8534a54b291d408511c9331
fileFormatVersion: 2
guid: c309fb8ee8534a54b291d408511c9331
timeCreated: 1622015740

View File

@ -2,7 +2,7 @@
using System.Collections.Generic;
using UnityEngine;
namespace VRMShaders
namespace UniGLTF
{
public sealed class MaterialDescriptor
{

View File

@ -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);

View File

@ -1,6 +1,4 @@
using System.Collections.Generic;
using UnityEngine;
using VRMShaders;
namespace UniGLTF
{

View File

@ -1,7 +1,6 @@
using System;
using System.Collections.Generic;
using UnityEngine;
using VRMShaders;
namespace UniGLTF
{

View File

@ -1,8 +1,6 @@
using System;
using System.Collections.Generic;
using UnityEngine;
using VRMShaders;
using ColorSpace = VRMShaders.ColorSpace;
namespace UniGLTF
{

View File

@ -2,8 +2,6 @@ using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using UnityEngine;
using VRMShaders;
namespace UniGLTF
{

View File

@ -4,7 +4,6 @@ using System.Threading.Tasks;
using UnityEngine;
using UnityEngine.Profiling;
using UnityEngine.Rendering;
using VRMShaders;
namespace UniGLTF
{

View File

@ -5,7 +5,7 @@ using UnityEngine;
using UnityEditor;
#endif
namespace VRMShaders
namespace UniGLTF
{
/// <summary>
/// UniGLTF.UnityPath (Assets の ひとつ上がルート) をすべてのパスが扱えるように拡張するのが趣旨。

View File

@ -1,7 +1,7 @@
using System;
using UnityEngine;
namespace VRMShaders
namespace UniGLTF
{
/// <summary>
/// UnityEditor.Experimental.AssetImporter.SourceAssetIdentifier に対応する

View File

@ -1,4 +1,4 @@
namespace VRMShaders
namespace UniGLTF
{
public static class Symbols
{

View File

@ -1,6 +1,6 @@
using UnityEngine;
namespace VRMShaders
namespace UniGLTF
{
public static class NormalConverter
{

View File

@ -2,7 +2,7 @@ using System;
using System.Linq;
using UnityEngine;
namespace VRMShaders
namespace UniGLTF
{
/// <summary>
///

View File

@ -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