mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-09-06 19:11:37 -05:00
mv generated Vrm10Material format from VRMShaders.VRM10.Format.Runtime to VRM10
This commit is contained in:
@@ -15,7 +15,7 @@ namespace UniVRM10
|
||||
/// </summary>
|
||||
public static class Vrm10SerializerGenerator
|
||||
{
|
||||
struct GenerateInfo
|
||||
private struct GenerateInfo
|
||||
{
|
||||
public string JsonSchema;
|
||||
public string FormatDir;
|
||||
@@ -33,7 +33,8 @@ namespace UniVRM10
|
||||
}
|
||||
}
|
||||
|
||||
const string SPEC_DIR = "vrm-specification/specification";
|
||||
private const string Vrm10SpecDir = "vrm-specification/specification";
|
||||
private const string Vrm10FormatGeneratedDir = "Assets/VRM10/Runtime/Format";
|
||||
|
||||
public static void Run(bool debug)
|
||||
{
|
||||
@@ -45,45 +46,44 @@ namespace UniVRM10
|
||||
{
|
||||
// VRMC_hdr_emissiveMultiplier
|
||||
new GenerateInfo(
|
||||
$"{SPEC_DIR}/VRMC_materials_hdr_emissiveMultiplier-1.0/schema/VRMC_materials_hdr_emissiveMultiplier.json",
|
||||
$"{Vrm10SpecDir}/VRMC_materials_hdr_emissiveMultiplier-1.0/schema/VRMC_materials_hdr_emissiveMultiplier.json",
|
||||
"Assets/UniGLTF/Runtime/UniGLTF/Format/ExtensionsAndExtras/EmissiveMultiplier"
|
||||
),
|
||||
|
||||
// VRMC_vrm
|
||||
new GenerateInfo(
|
||||
$"{SPEC_DIR}/VRMC_vrm-1.0/schema/VRMC_vrm.schema.json",
|
||||
"Assets/VRM10/Runtime/Format/Vrm"
|
||||
$"{Vrm10SpecDir}/VRMC_vrm-1.0/schema/VRMC_vrm.schema.json",
|
||||
$"{Vrm10FormatGeneratedDir}/Vrm"
|
||||
),
|
||||
|
||||
// VRMC_materials_mtoon
|
||||
new GenerateInfo(
|
||||
$"{SPEC_DIR}/VRMC_materials_mtoon-1.0/schema/VRMC_materials_mtoon.schema.json",
|
||||
"Assets/VRMShaders/VRM10/Format/Runtime/MaterialsMToon",
|
||||
"Assets/VRM10/Runtime/Format/MaterialsMToon"
|
||||
$"{Vrm10SpecDir}/VRMC_materials_mtoon-1.0/schema/VRMC_materials_mtoon.schema.json",
|
||||
$"{Vrm10FormatGeneratedDir}/MaterialsMToon"
|
||||
),
|
||||
|
||||
// VRMC_springBone
|
||||
new GenerateInfo(
|
||||
$"{SPEC_DIR}/VRMC_springBone-1.0/schema/VRMC_springBone.schema.json",
|
||||
"Assets/VRM10/Runtime/Format/SpringBone"
|
||||
$"{Vrm10SpecDir}/VRMC_springBone-1.0/schema/VRMC_springBone.schema.json",
|
||||
$"{Vrm10FormatGeneratedDir}/SpringBone"
|
||||
),
|
||||
|
||||
// VRMC_node_constraint
|
||||
new GenerateInfo(
|
||||
$"{SPEC_DIR}/VRMC_node_constraint-1.0/schema/VRMC_node_constraint.schema.json",
|
||||
"Assets/VRM10/Runtime/Format/Constraints"
|
||||
$"{Vrm10SpecDir}/VRMC_node_constraint-1.0/schema/VRMC_node_constraint.schema.json",
|
||||
$"{Vrm10FormatGeneratedDir}/Constraints"
|
||||
),
|
||||
|
||||
// VRMC_animation
|
||||
new GenerateInfo(
|
||||
$"{SPEC_DIR}/VRMC_vrm_animation-1.0/schema/VRMC_vrm_animation.schema.json",
|
||||
"Assets/VRM10/Runtime/Format/Animation"
|
||||
$"{Vrm10SpecDir}/VRMC_vrm_animation-1.0/schema/VRMC_vrm_animation.schema.json",
|
||||
$"{Vrm10FormatGeneratedDir}/Animation"
|
||||
),
|
||||
|
||||
// VRMC_animation
|
||||
new GenerateInfo(
|
||||
$"{SPEC_DIR}/VRMC_springBone_extended_collider-1.0/schema/VRMC_springBone_extended_collider.schema.json",
|
||||
"Assets/VRM10/Runtime/Format/SpringBoneExtendedCollider"
|
||||
$"{Vrm10SpecDir}/VRMC_springBone_extended_collider-1.0/schema/VRMC_springBone_extended_collider.schema.json",
|
||||
$"{Vrm10FormatGeneratedDir}/SpringBoneExtendedCollider"
|
||||
),
|
||||
};
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 7bbff45dd057a5a4d935d5ee9a64e40a
|
||||
guid: a36356ed698e0cb4d8ad805b14c3d361
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
@@ -1,8 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 83500e0cfc53cf04f95af8a60cc32017
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -1,8 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 07be59cdcf4b2df4ca9241939bf1054e
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -1,8 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: c6bae94a423d90d45bc6f1bd1eada5fe
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -1,13 +0,0 @@
|
||||
{
|
||||
"name": "VRMShaders.VRM10.Format.Runtime",
|
||||
"references": [],
|
||||
"includePlatforms": [],
|
||||
"excludePlatforms": [],
|
||||
"allowUnsafeCode": false,
|
||||
"overrideReferences": false,
|
||||
"precompiledReferences": [],
|
||||
"autoReferenced": false,
|
||||
"defineConstraints": [],
|
||||
"versionDefines": [],
|
||||
"noEngineReferences": false
|
||||
}
|
||||
@@ -1,7 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: bce005214fa49654d93927908c15b1f2
|
||||
AssemblyDefinitionImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user