Upload project files

This commit is contained in:
Misaki
2024-09-16 00:08:10 +09:00
commit 0a4745662a
218 changed files with 13387 additions and 0 deletions

View File

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

View File

@@ -0,0 +1,18 @@
using System;
using Unity.Mathematics;
using UnityEngine;
namespace Misaki.ArtTool
{
[Serializable]
public class GridDistributionSetting
{
public int3 count = new(3, 3, 3);
public float3 spacing = new(1.0f, 1.0f, 1.0f);
public GridShape shape;
[Range(0.0f, 1.0f)]
public float fill = 1.0f;
public int DistributionCount => count.x * count.y * count.z;
}
}

View File

@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 117719617fb15994790913adcb8392ad

View File

@@ -0,0 +1,18 @@
using System;
using Unity.Mathematics;
namespace Misaki.ArtTool
{
[Serializable]
public class LinearDistributionSetting
{
public uint count = 10;
public uint indexOffset = 0;
public float3 positionSpacing = new(0.0f, 1.0f, 0.0f);
public float3 rotationSpacing = float3.zero;
public float3 scaleSpacing = new(1.0f, 1.0f, 1.0f);
public float3 stepRotation = float3.zero;
}
}

View File

@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: e489bd7add88acc4cb2bf8c30c851653

View File

@@ -0,0 +1,13 @@
using System;
using UnityEngine;
namespace Misaki.ArtTool
{
[Serializable]
public struct ObjectDistributionSetting
{
public MeshFilter meshFilter;
public int count;
public bool alignNormal;
}
}

View File

@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 818f2d0001f1e8f439e23e34ed6ae898

View File

@@ -0,0 +1,34 @@
using System;
using UnityEngine;
using UnityEngine.Splines;
namespace Misaki.ArtTool
{
[Serializable]
public class SplineDistributionSetting
{
public SplineContainer spline;
public int indexOffset;
public uint count = 10;
public float spacing = 1.0f;
public bool isSpacingMode;
public int DistributionCount
{
get
{
if (isSpacingMode)
{
return Mathf.RoundToInt(spline.CalculateLength() / spacing) + 1;
}
else
{
return (int)count;
}
}
}
}
}

View File

@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 7b5cfd6221b6b9a45bba99cefb806ccc

View File

@@ -0,0 +1,11 @@
using System;
namespace Misaki.ArtTool
{
[Serializable]
public class EffectorData
{
public bool enable = true;
public EffectorBase effector;
}
}

View File

@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 9e8152eaeb656654cbbe7859b44b12bf

View File

@@ -0,0 +1,13 @@
using System;
namespace Misaki.ArtTool
{
[Serializable]
public class FieldData
{
public bool enable = true;
public FieldBase field;
public BlendingMode blending;
public float opacity = 1.0f;
}
}

View File

@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 73bd368d309049d42be068896e7c1a58

View File

@@ -0,0 +1,41 @@
using System;
using UnityEngine;
namespace Misaki.ArtTool
{
[Serializable]
public class InputObjectData
{
public GameObject gameObject;
public uint frequency = 1;
private Mesh _mesh;
public Mesh Mesh
{
get
{
if (_mesh == null)
{
_mesh = gameObject.GetComponentInChildren<MeshFilter>().sharedMesh;
}
return _mesh;
}
}
private Material _material;
public Material Material
{
get
{
if (_material == null)
{
_material = gameObject.GetComponentInChildren<MeshRenderer>().sharedMaterial;
_material.enableInstancing = true;
}
return _material;
}
}
}
}

View File

@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 852b6e461bca6b64e9e2cb2735de1a19

View File

@@ -0,0 +1,31 @@
using System;
using Unity.Collections;
namespace Misaki.ArtTool
{
public struct ObjectIdInfo : IDisposable
{
public NativeArray<int> instanceIdArray;
public NativeArray<int> transformIdArray;
public bool IsCreated
{
get
{
return instanceIdArray.IsCreated && transformIdArray.IsCreated;
}
}
public ObjectIdInfo(int size)
{
instanceIdArray = new(size, Allocator.Persistent);
transformIdArray = new(size, Allocator.Persistent);
}
public void Dispose()
{
instanceIdArray.Dispose();
transformIdArray.Dispose();
}
}
}

View File

@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 198d97e9fb629864b910011c81d94375

View File

@@ -0,0 +1,12 @@
using System;
using Unity.Mathematics;
namespace Misaki.ArtTool
{
[Serializable]
public struct PointData
{
public bool isValid;
public float4x4 matrix;
}
}

View File

@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 94a436dd2ba363746abf1f24efd1d021

View File

@@ -0,0 +1,18 @@
using System;
namespace Misaki.ArtTool
{
[Serializable]
public class RemappingSetting
{
public bool enable = true;
public float strength = 1.0f;
public bool invert = false;
public float innerOffset = 0.0f;
public float min = 0.0f;
public float max = 1.0f;
}
}

View File

@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 404cd8f4b1af1114aaa5dae86d4a9123