import pmx plugin

This commit is contained in:
CroakFang
2023-06-30 14:08:40 +08:00
parent c3d4e6b111
commit 33943e4205
203 changed files with 11810 additions and 0 deletions
@@ -0,0 +1,41 @@
using UnityEngine;
namespace LibMMD.Material
{
public class MMDMaterial
{
public enum SubTextureTypeEnum : byte
{
MatSubTexOff = 0,
MatSubTexSph = 1,
MatSubTexSpa = 2,
MatSubTexSub = 3
}
public string Name { get; set; }
public string NameEn { get; set; }
public Color DiffuseColor { get; set; }
public Color SpecularColor { get; set; }
public Color AmbientColor { get; set; }
public float Shiness { get; set; }
public bool DrawDoubleFace { get; set; }
public bool DrawGroundShadow { get; set; }
public bool CastSelfShadow { get; set; }
public bool DrawSelfShadow { get; set; }
public bool DrawEdge { get; set; }
public Color EdgeColor { get; set; }
public float EdgeSize { get; set; }
public MMDTexture Toon { get; set; }
public MMDTexture Texture { get; set; }
public MMDTexture SubTexture { get; set; }
public SubTextureTypeEnum SubTextureType { get; set; }
public string MetaInfo { get; set; }
}
}
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 439296348e1847745b21029b3e124fb3
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,35 @@
namespace LibMMD.Material
{
public class MMDTexture
{
public string TexturePath { get; set; }
public MMDTexture(string texturePath)
{
TexturePath = texturePath;
}
protected bool Equals(MMDTexture other)
{
return string.Equals(TexturePath, other.TexturePath);
}
public override bool Equals(object obj)
{
if (ReferenceEquals(null, obj)) return false;
if (ReferenceEquals(this, obj)) return true;
if (obj.GetType() != this.GetType()) return false;
return Equals((MMDTexture) obj);
}
public override int GetHashCode()
{
return TexturePath != null ? TexturePath.GetHashCode() : 0;
}
private MMDTexture()
{
}
}
}
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 748fb3d767b3fb84faabacb9d3899280
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: