format directory structure about VRM10 material io

This commit is contained in:
Masataka SUMI
2022-11-04 15:50:42 +09:00
parent 1ff83272de
commit 28f7045418
19 changed files with 29 additions and 6 deletions

View File

@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 48ae52bce69c4f68a97461a4f52ca46e
timeCreated: 1667544324

View File

@@ -4,11 +4,11 @@ using VRMShaders;
namespace UniVRM10
{
public class BuiltinRPVrm10MaterialExporter : BuiltInGltfMaterialExporter
public class BuiltInVrm10MaterialExporter : BuiltInGltfMaterialExporter
{
public override glTFMaterial ExportMaterial(Material m, ITextureExporter textureExporter, GltfExportSettings settings)
{
if (BuiltinRPVrm10MToonMaterialExporter.TryExportMaterialAsMToon(m, textureExporter, out var dst))
if (BuiltInVrm10MToonMaterialExporter.TryExportMaterialAsMToon(m, textureExporter, out var dst))
{
return dst;
}

View File

@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 9471ebdc1b724bccaff0223a9d20070e
timeCreated: 1667544340

View File

@@ -8,7 +8,7 @@ using ColorSpace = VRMShaders.ColorSpace;
namespace UniVRM10
{
public static class BuiltinRPVrm10MToonMaterialExporter
public static class BuiltInVrm10MToonMaterialExporter
{
public static bool TryExportMaterialAsMToon(Material src, ITextureExporter textureExporter,
out glTFMaterial dst)

View File

@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: b100c9d06dda49ed91afa6b2c2cebc06
timeCreated: 1667544368

View File

@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 0361e8fb0fb84326ada30f8c5cc7b665
timeCreated: 1667544400

View File

@@ -1,3 +1,3 @@
fileFormatVersion: 2
guid: 01c1ac60c9a047b59ea52aaddb7a0d63
fileFormatVersion: 2
guid: 01c1ac60c9a047b59ea52aaddb7a0d63
timeCreated: 1620630516

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: a0d1364c3beb8494f9b3ae9c0445ffa9
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 45fd659f340f450e97fd111184db0c9d
timeCreated: 1667544438

View File

@@ -158,7 +158,7 @@ namespace UniVRM10
static IEnumerable<glTFMaterial> ExportMaterials(Model model, ITextureExporter textureExporter, GltfExportSettings settings)
{
var materialExporter = new BuiltinRPVrm10MaterialExporter();
var materialExporter = new BuiltInVrm10MaterialExporter();
foreach (Material material in model.Materials)
{
yield return materialExporter.ExportMaterial(material, textureExporter, settings);