From 15740faf9fe9fe4be08965098bbf2947e096aeeb Mon Sep 17 00:00:00 2001
From: chai <chaifix@163.com>
Date: Wed, 14 Aug 2019 22:50:43 +0800
Subject: +Unity Runtime code

---
 .../Graphics/ParticleSystem/ParticleSystemCommon.h | 48 ++++++++++++++++++++++
 1 file changed, 48 insertions(+)
 create mode 100644 Runtime/Graphics/ParticleSystem/ParticleSystemCommon.h

(limited to 'Runtime/Graphics/ParticleSystem/ParticleSystemCommon.h')

diff --git a/Runtime/Graphics/ParticleSystem/ParticleSystemCommon.h b/Runtime/Graphics/ParticleSystem/ParticleSystemCommon.h
new file mode 100644
index 0000000..fd59987
--- /dev/null
+++ b/Runtime/Graphics/ParticleSystem/ParticleSystemCommon.h
@@ -0,0 +1,48 @@
+#ifndef PARTICLESYSTEMCOMMON_H
+#define PARTICLESYSTEMCOMMON_H
+
+enum ParticleSystemSubType
+{
+	kParticleSystemSubTypeBirth,
+	kParticleSystemSubTypeCollision,
+	kParticleSystemSubTypeDeath,
+};
+
+enum ParticleSystemEmitMode
+{
+	kParticleSystemEMDirect,
+	kParticleSystemEMStaging,
+};
+
+enum
+{
+	kParticleSystemMaxSubBirth = 2,
+	kParticleSystemMaxSubCollision = 2,
+	kParticleSystemMaxSubDeath = 2,
+	kParticleSystemMaxSubTotal = kParticleSystemMaxSubBirth + kParticleSystemMaxSubCollision + kParticleSystemMaxSubDeath,
+};
+
+// Curve id's needed to offset randomness for curves, to avoid visible patterns due to only storing 1 random value per particle
+enum ParticleSystemRandomnessIds
+{
+	// Curves
+	kParticleSystemClampVelocityCurveId = 0x13371337,
+	kParticleSystemForceCurveId = 0x12460f3b,
+	kParticleSystemRotationCurveId = 0x6aed452e,
+	kParticleSystemRotationBySpeedCurveId = 0xdec4aea1,
+	kParticleSystemStartSpeedCurveId = 0x96aa4de3,
+	kParticleSystemSizeCurveId = 0x8d2c8431,
+	kParticleSystemSizeBySpeedCurveId = 0xf3857f6f,
+	kParticleSystemVelocityCurveId = 0xe0fbd834,
+	kParticleSystemUVCurveId = 0x13740583,
+
+	// Gradient
+	kParticleSystemColorGradientId = 0x591bc05c,
+	kParticleSystemColorByVelocityGradientId = 0x40eb95e4,
+
+	// Misc
+	kParticleSystemMeshSelectionId = 0xbc524e5f,
+	kParticleSystemUVRowSelectionId = 0xaf502044,
+};
+
+#endif // PARTICLESYSTEMCOMMON_H
-- 
cgit v1.1-26-g67d0