public static class TextureGraphSettingsWhat a texture graph declares about itself: doc 48 § D8's base resolution and § D5's seed.
Remarks
⚠ These were properties of the compiler, set by whichever host constructed one, and a saved .vxtexgraph came back at whatever that host defaulted to — #719. § D8 opens with "the graph declares a base resolution" and the relative half was built; the declaring half had nowhere to live, because NodeGraphModel carried a name, nodes, edges, groups, comments and an interface. It carries a settings bag now, and this is the texture graph's reading of it.
⚠ And a seed that is not in the file is a seed that changes between machines, which § D5 says plainly is not a source asset: "a procedural texture whose output changes between runs". That was the sharper half of the same gap, because a resolution that came back wrong is visible and a seed that came back different is just a different picture.
What the graph declares and what the bake decides are two different lists, and only the first is here. BakeLevelOffset is how big this run is making the material, Arguments is what a .vxsmartmat overrode, and PreviewEveryNode is what a panel wants — none of them is a property of the graph, and putting any of them in the file would be a bake somebody saved by accident.
Fields and properties (3)
public const string BaseWidthThe key the authoring width is stored under.
public const string BaseHeightThe key the authoring height is stored under.
public const string SeedThe key the seed is stored under.
Methods (3)
public static void Declare(NodeGraphModel graph, int width, int height, uint seed)Writes a graph's declarations into its own settings.
public static int Extent(NodeGraphModel graph, string key, int fallback, out string? problem)Reads one of a graph's declared numbers, or the host's own value.
public static uint SeedOf(NodeGraphModel graph, uint fallback, out string? problem)Reads a graph's declared seed, or the host's own.
Used by (2)
- TextureGraphCompilerVixen.Editor.TextureGraph
- TextureGraphDeclarationTestsVixen.Editor.TextureGraph.Tests