From 9157c22eef02f49ff589d5d186355d3202834ba5 Mon Sep 17 00:00:00 2001 From: Masataka SUMI Date: Wed, 26 May 2021 17:52:53 +0900 Subject: [PATCH] Define ITextureImporter --- .../UniGLTF/IO/TextureIO/ITextureImporter.cs | 15 +++++++++++++++ .../UniGLTF/IO/TextureIO/ITextureImporter.cs.meta | 3 +++ 2 files changed, 18 insertions(+) create mode 100644 Assets/UniGLTF/Runtime/UniGLTF/IO/TextureIO/ITextureImporter.cs create mode 100644 Assets/UniGLTF/Runtime/UniGLTF/IO/TextureIO/ITextureImporter.cs.meta diff --git a/Assets/UniGLTF/Runtime/UniGLTF/IO/TextureIO/ITextureImporter.cs b/Assets/UniGLTF/Runtime/UniGLTF/IO/TextureIO/ITextureImporter.cs new file mode 100644 index 000000000..873682cb8 --- /dev/null +++ b/Assets/UniGLTF/Runtime/UniGLTF/IO/TextureIO/ITextureImporter.cs @@ -0,0 +1,15 @@ +using System.Collections.Generic; +using VRMShaders; + +namespace UniGLTF +{ + /// + /// glTF から Import できる Texture の生成情報のリストを生成する。 + /// + /// glTF Texture と Unity Texture の対応関係は N:M である。 + /// + public interface ITextureImporter + { + IReadOnlyDictionary GetTextureParams(GltfParser parser); + } +} diff --git a/Assets/UniGLTF/Runtime/UniGLTF/IO/TextureIO/ITextureImporter.cs.meta b/Assets/UniGLTF/Runtime/UniGLTF/IO/TextureIO/ITextureImporter.cs.meta new file mode 100644 index 000000000..674d3aab5 --- /dev/null +++ b/Assets/UniGLTF/Runtime/UniGLTF/IO/TextureIO/ITextureImporter.cs.meta @@ -0,0 +1,3 @@ +fileFormatVersion: 2 +guid: 8e671772001d477b82c414ce708b7e7f +timeCreated: 1622018845 \ No newline at end of file