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

@ -7,7 +7,7 @@ using System.Collections.Generic;
using UnityEngine;
using System.IO;
using System.Linq;
using static Unity.Mathematics.math;
using static CultMath.math;
#if UNITY_EDITOR
using UnityEditor;

View file

@ -5,7 +5,7 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using static Unity.Mathematics.math;
using static CultMath.math;
//[ExecuteInEditMode]
public class SunMaterial : MonoBehaviour

View file

@ -4,12 +4,11 @@
using System;
using UnityEngine;
using Unity.Mathematics;
using CultMath;
using UnityEngine.Experimental.Rendering;
using UnityEngine.Rendering;
using UnityEngine.Serialization;
using static Unity.Mathematics.math;
using static Unity.Mathematics.noise;
using static CultMath.math;
/// <summary>
/// Drives the volume render.

View file

@ -12,9 +12,9 @@ using UnityEngine;
using UnityEngine.Serialization;
using Object = UnityEngine.Object;
using Random = UnityEngine.Random;
using Unity.Mathematics;
using static Unity.Mathematics.math;
using float2 = Unity.Mathematics.float2;
using CultMath;
using static CultMath.math;
using float2 = CultMath.float2;
public class ZoneRenderer : MonoBehaviour
{