Define world-anchored procedural field sources

This commit is contained in:
Meta Vens 2026-07-15 23:14:47 +01:00
commit c4a61e818e
5 changed files with 20 additions and 2 deletions

View file

@ -9,3 +9,13 @@ implement these read-only interfaces; Unity runtime adapters consume them.
`FalloffScale` and `FalloffExponent` alongside each SoA splat. Missing parameter
entries retain the neutral defaults `1` and `1`, so older v1 documents remain
readable.
Procedural sources are evaluated in field-world coordinates, not splat-local
UVs. `SimplexNoise` samples signed Ashima 3D simplex at
`(worldXY * frequency + phase, 0)`. `AnimatedSimplexNoise` uses
`simulationTimeSeconds * animationSpeed` for the third coordinate.
`AnimatedCellNoiseB` is the portable moving, wrappable cellular source whose
distance metric is `(length(frac(p) - .5) * 1.5 + .25) *
max(abs(x) * .866 + y * .5, -y)`. `AbsoluteValue` folds a signed source after
sampling. Constant offsets remain ordinary constant splats, so source sampling
and additive composition retain separate ownership.

View file

@ -43,6 +43,12 @@ namespace GameCult.Eve.PluginFields
public const int Constant = 0;
public const int SimplexNoise = 1;
public const int AnimatedSimplexNoise = 2;
public const int AnimatedCellNoiseB = 3;
}
public static class EveFieldsSplatSourceFlags
{
public const int AbsoluteValue = 1;
}
public static class EveFieldsSplatFalloffs

View file

@ -1,6 +1,6 @@
{
"name": "org.gamecult.eve.plugin-fields",
"version": "0.2.1",
"version": "0.2.2",
"displayName": "Eve Fields Plugin Contracts",
"description": "Runtime-neutral C# contracts for gamecult.fields documents.",
"unity": "2021.3",