Swap Unity.Mathematics usings for CultMath

Every Unity.Mathematics using, alias and qualified name under Assets\Scripts
and tools now names CultMath. The nine `using static ...noise;` lines are
gone: snoise lives on CultMath's math. UnityExtensions loses float4.ToColor
and Color.ToFloat4, which duplicate the bridge's ToColor and ToCultMath; the
float3 colour pair stays because the bridge has none.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-09-14 17:39:12 +02:00
commit 6140a06a0a
130 changed files with 281 additions and 293 deletions

View file

@ -1,7 +1,7 @@
using System.Linq;
using Unity.Mathematics;
using CultMath;
using UnityEngine;
using static Unity.Mathematics.math;
using static CultMath.math;
public static class UnityExtensions
{
@ -47,7 +47,4 @@ public static class UnityExtensions
public static Color ToColor(this float3 v) => new Color(v.x,v.y,v.z);
public static float3 ToFloat3(this Color c) => float3(c.r,c.g,c.b);
public static Color ToColor(this float4 v) => new Color(v.x,v.y,v.z, v.w);
public static float4 ToFloat4(this Color c) => float4(c.r, c.g, c.b, c.a);
}