diff options
| author | chai <215380520@qq.com> | 2024-05-19 17:03:57 +0800 |
|---|---|---|
| committer | chai <215380520@qq.com> | 2024-05-19 17:03:57 +0800 |
| commit | cf58771365b5953c6eac548b172aae880d1f0acd (patch) | |
| tree | a49757a4b5c447cbf877584d482367a6bfe33b10 /Thronefall_1_57/Decompile/NGS.MeshFusionPro/LightweightVertex.cs | |
| parent | eed315deae356ddfb17f28305e7cde6cdfc43313 (diff) | |
* rename
Diffstat (limited to 'Thronefall_1_57/Decompile/NGS.MeshFusionPro/LightweightVertex.cs')
| -rw-r--r-- | Thronefall_1_57/Decompile/NGS.MeshFusionPro/LightweightVertex.cs | 95 |
1 files changed, 0 insertions, 95 deletions
diff --git a/Thronefall_1_57/Decompile/NGS.MeshFusionPro/LightweightVertex.cs b/Thronefall_1_57/Decompile/NGS.MeshFusionPro/LightweightVertex.cs deleted file mode 100644 index 5c5de9e..0000000 --- a/Thronefall_1_57/Decompile/NGS.MeshFusionPro/LightweightVertex.cs +++ /dev/null @@ -1,95 +0,0 @@ -using Unity.Mathematics; -using UnityEngine; - -namespace NGS.MeshFusionPro; - -public struct LightweightVertex -{ - public float3 pos; - - public sbyte normX; - - public sbyte normY; - - public sbyte normZ; - - public sbyte normW; - - public sbyte tanX; - - public sbyte tanY; - - public sbyte tanZ; - - public sbyte tanW; - - public half2 uv; - - public half2 uv2; - - public Vector3 Position - { - get - { - return pos; - } - set - { - pos = value; - } - } - - public Vector3 Normal - { - get - { - return new Vector3((float)normX / 127f, (float)normY / 127f, (float)normZ / 127f); - } - set - { - normX = (sbyte)(value.x * 127f); - normY = (sbyte)(value.y * 127f); - normZ = (sbyte)(value.z * 127f); - normW = 1; - } - } - - public Vector4 Tangent - { - get - { - return new Vector4((float)tanX / 127f, (float)tanY / 127f, (float)tanZ / 127f, (float)tanW / 127f); - } - set - { - tanX = (sbyte)(value.x * 127f); - tanY = (sbyte)(value.y * 127f); - tanZ = (sbyte)(value.z * 127f); - tanW = (sbyte)(value.w * 127f); - } - } - - public Vector2 UV - { - get - { - return new Vector2(uv.x, uv.y); - } - set - { - uv = new half2((half)value.x, (half)value.y); - } - } - - public Vector2 UV2 - { - get - { - return new Vector2(uv2.x, uv2.y); - } - set - { - uv2 = new half2((half)value.x, (half)value.y); - } - } -} |
