修改水

This commit is contained in:
2026-01-01 22:00:33 +08:00
parent 040a222bd6
commit 9ceffccd39
1800 changed files with 103929 additions and 139495 deletions

View File

@@ -1,40 +0,0 @@
using UnityEngine;
using System;
namespace Obi
{
[Serializable]
public struct EmitPoint
{
public Vector4 position;
public Vector4 direction;
public Vector4 velocity;
public Color color;
public EmitPoint(Vector3 position, Vector3 direction)
{
this.position = position;
this.direction = direction;
this.velocity = Vector4.zero;
this.color = Color.white;
}
public EmitPoint(Vector3 position, Vector3 direction, Color color)
{
this.position = position;
this.direction = direction;
this.velocity = Vector4.zero;
this.color = color;
}
public EmitPoint GetTransformed(Matrix4x4 transform, Matrix4x4 prevTransform, Color multiplyColor, float deltaTime)
{
var ep = new EmitPoint(transform.MultiplyPoint3x4(position),
transform.MultiplyVector(direction),
color * multiplyColor);
ep.velocity = deltaTime > 0 ? ((Vector3)ep.position - prevTransform.MultiplyPoint3x4(position)) / deltaTime : Vector3.zero;
return ep;
}
}
}