Meta Vens
1add078eea
Delete cellular's unreachable F2=0 guard instead of leaving it undefended
...
Stryker (scoped to this cut's diff) survived two mutants on the grad2 ternary
in math.cellular: forcing the true branch unconditionally, and loosening
f2 > 0.0f to f2 >= 0.0f. Both are real findings about the code, not the
tests: F2 = 0 needs two distinct integer cells' pcg3d-jittered feature points
to land on the exact float32 value in every component, which the jitter's
~24-bit float precision makes unreachable for any p this function is
actually called with. The spec only asks for the degenerate guard at F1 = 0;
F2's copy of it was added for symmetry and had no reachable case to defend.
Deleted the guard (grad2 is now a bare (p - c2) / f2) in math.cs and both
HLSL mirrors, and corrected design.md's invariant-8 section, which had
overstated this as symmetric with F1's guard.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-25 19:47:36 +02:00
..
BatchMath.cs
Move CultMath into the CultLib monorepo
2026-08-26 17:35:51 +02:00
BatchMath.cs.meta
Move CultMath into the CultLib monorepo
2026-08-26 17:35:51 +02:00
bool2.cs
Generate every HLSL swizzle and mixed constructor; fix intrinsic types
2026-09-14 13:57:02 +02:00
bool2.cs.meta
Move CultMath into the CultLib monorepo
2026-08-26 17:35:51 +02:00
bool3.cs
Generate every HLSL swizzle and mixed constructor; fix intrinsic types
2026-09-14 13:57:02 +02:00
bool3.cs.meta
Make CultMath HLSL-shaped: writable components, bool-vector comparisons
2026-09-14 13:29:59 +02:00
bool4.cs
Generate every HLSL swizzle and mixed constructor; fix intrinsic types
2026-09-14 13:57:02 +02:00
bool4.cs.meta
Make CultMath HLSL-shaped: writable components, bool-vector comparisons
2026-09-14 13:29:59 +02:00
Color32.cs
Move CultMath into the CultLib monorepo
2026-08-26 17:35:51 +02:00
Color32.cs.meta
Move CultMath into the CultLib monorepo
2026-08-26 17:35:51 +02:00
CultCellular.cs
Add smin_grad and cellular value-and-gradient primitives to CultMath
2026-09-25 19:17:39 +02:00
CultCellular.cs.meta
Add smin_grad and cellular value-and-gradient primitives to CultMath
2026-09-25 19:17:39 +02:00
CultMath.asmdef
Move CultMath into the CultLib monorepo
2026-08-26 17:35:51 +02:00
CultMath.asmdef.meta
Move CultMath into the CultLib monorepo
2026-08-26 17:35:51 +02:00
CultMath.csproj
Release CultMath 0.2.4: erf and erfinv reach the Unity package
2026-09-24 19:02:40 +02:00
CultMath.csproj.meta
Move CultMath into the CultLib monorepo
2026-08-26 17:35:51 +02:00
CultMathTone.cs
Move CultMath into the CultLib monorepo
2026-08-26 17:35:51 +02:00
CultMathTone.cs.meta
Move CultMath into the CultLib monorepo
2026-08-26 17:35:51 +02:00
double2.cs
Generate every HLSL swizzle and mixed constructor; fix intrinsic types
2026-09-14 13:57:02 +02:00
double2.cs.meta
Move CultMath into the CultLib monorepo
2026-08-26 17:35:51 +02:00
double3.cs
Generate every HLSL swizzle and mixed constructor; fix intrinsic types
2026-09-14 13:57:02 +02:00
double3.cs.meta
Move CultMath into the CultLib monorepo
2026-08-26 17:35:51 +02:00
float2.cs
Generate every HLSL swizzle and mixed constructor; fix intrinsic types
2026-09-14 13:57:02 +02:00
float2.cs.meta
Move CultMath into the CultLib monorepo
2026-08-26 17:35:51 +02:00
float2x2.cs
Document where matrix row writes are silently lost
2026-09-14 14:18:00 +02:00
float2x2.cs.meta
Make CultMath HLSL-shaped: writable components, bool-vector comparisons
2026-09-14 13:29:59 +02:00
float3.cs
Generate every HLSL swizzle and mixed constructor; fix intrinsic types
2026-09-14 13:57:02 +02:00
float3.cs.meta
Move CultMath into the CultLib monorepo
2026-08-26 17:35:51 +02:00
float3x3.cs
Document where matrix row writes are silently lost
2026-09-14 14:18:00 +02:00
float3x3.cs.meta
Make CultMath HLSL-shaped: writable components, bool-vector comparisons
2026-09-14 13:29:59 +02:00
float4.cs
Generate every HLSL swizzle and mixed constructor; fix intrinsic types
2026-09-14 13:57:02 +02:00
float4.cs.meta
Move CultMath into the CultLib monorepo
2026-08-26 17:35:51 +02:00
int2.cs
Generate every HLSL swizzle and mixed constructor; fix intrinsic types
2026-09-14 13:57:02 +02:00
int2.cs.meta
Move CultMath into the CultLib monorepo
2026-08-26 17:35:51 +02:00
int3.cs
Generate every HLSL swizzle and mixed constructor; fix intrinsic types
2026-09-14 13:57:02 +02:00
int3.cs.meta
Make CultMath HLSL-shaped: writable components, bool-vector comparisons
2026-09-14 13:29:59 +02:00
int4.cs
Generate every HLSL swizzle and mixed constructor; fix intrinsic types
2026-09-14 13:57:02 +02:00
int4.cs.meta
Make CultMath HLSL-shaped: writable components, bool-vector comparisons
2026-09-14 13:29:59 +02:00
IsExternalInit.cs
Move CultMath into the CultLib monorepo
2026-08-26 17:35:51 +02:00
IsExternalInit.cs.meta
Move CultMath into the CultLib monorepo
2026-08-26 17:35:51 +02:00
math.cs
Delete cellular's unreachable F2=0 guard instead of leaving it undefended
2026-09-25 19:47:36 +02:00
math.cs.meta
Move CultMath into the CultLib monorepo
2026-08-26 17:35:51 +02:00
quaternion.cs
Make CultMath HLSL-shaped: writable components, bool-vector comparisons
2026-09-14 13:29:59 +02:00
quaternion.cs.meta
Move CultMath into the CultLib monorepo
2026-08-26 17:35:51 +02:00
Random.cs
Make CultMath HLSL-shaped: writable components, bool-vector comparisons
2026-09-14 13:29:59 +02:00
Random.cs.meta
Move CultMath into the CultLib monorepo
2026-08-26 17:35:51 +02:00
rect.cs
Move CultMath into the CultLib monorepo
2026-08-26 17:35:51 +02:00
rect.cs.meta
Move CultMath into the CultLib monorepo
2026-08-26 17:35:51 +02:00
Swizzles.g.cs
Add HLSL vector conversions, int clamp, and double frac to CultMath
2026-09-14 16:16:32 +02:00
Swizzles.g.cs.meta
Generate every HLSL swizzle and mixed constructor; fix intrinsic types
2026-09-14 13:57:02 +02:00
UnscopedRefAttribute.cs
Generate every HLSL swizzle and mixed constructor; fix intrinsic types
2026-09-14 13:57:02 +02:00
UnscopedRefAttribute.cs.meta
Generate every HLSL swizzle and mixed constructor; fix intrinsic types
2026-09-14 13:57:02 +02:00
Voronoi.cs
Move CultMath into the CultLib monorepo
2026-08-26 17:35:51 +02:00
Voronoi.cs.meta
Move CultMath into the CultLib monorepo
2026-08-26 17:35:51 +02:00