add Console panel; fix the problem when cs set Rotation the direction not update; fix some little bug; add simple texture material Edit system;some treaks

This commit is contained in:
2026-03-27 18:02:57 +08:00
parent ef4ea45edc
commit 4266a0b570
56 changed files with 1927 additions and 614 deletions

View File

@ -52,6 +52,15 @@ namespace Prism
Y = vec.Y;
Z = vec.Z;
}
public static Vec3 Cross(Vec3 a, Vec3 b)
{
return new Vec3(
a.Y * b.Z - a.Z * b.Y,
a.Z * b.X - a.X * b.Z,
a.X * b.Y - a.Y * b.X
);
}
public void Clamp(Vec3 min, Vec3 max)
{
@ -59,6 +68,7 @@ namespace Prism
Y = Mathf.Clamp(Y, min.Y, max.Y);
Z = Mathf.Clamp(Z, min.Z, max.Z);
}
public float LengthSquared()
{