mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-10-02 07:42:25 -05:00
format directory structure about VRM10 material io
This commit is contained in:
3
Assets/VRM10/Runtime/IO/Material/BuiltinRP/Export.meta
Normal file
3
Assets/VRM10/Runtime/IO/Material/BuiltinRP/Export.meta
Normal file
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 48ae52bce69c4f68a97461a4f52ca46e
|
||||
timeCreated: 1667544324
|
||||
@@ -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;
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 9471ebdc1b724bccaff0223a9d20070e
|
||||
timeCreated: 1667544340
|
||||
@@ -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)
|
||||
3
Assets/VRM10/Runtime/IO/Material/BuiltinRP/Import.meta
Normal file
3
Assets/VRM10/Runtime/IO/Material/BuiltinRP/Import.meta
Normal file
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b100c9d06dda49ed91afa6b2c2cebc06
|
||||
timeCreated: 1667544368
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 0361e8fb0fb84326ada30f8c5cc7b665
|
||||
timeCreated: 1667544400
|
||||
@@ -1,3 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 01c1ac60c9a047b59ea52aaddb7a0d63
|
||||
fileFormatVersion: 2
|
||||
guid: 01c1ac60c9a047b59ea52aaddb7a0d63
|
||||
timeCreated: 1620630516
|
||||
8
Assets/VRM10/Runtime/IO/Material/URP.meta
Normal file
8
Assets/VRM10/Runtime/IO/Material/URP.meta
Normal file
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: a0d1364c3beb8494f9b3ae9c0445ffa9
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
3
Assets/VRM10/Runtime/IO/Material/URP/Import.meta
Normal file
3
Assets/VRM10/Runtime/IO/Material/URP/Import.meta
Normal file
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 45fd659f340f450e97fd111184db0c9d
|
||||
timeCreated: 1667544438
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user