Expand description
The compiled form of an SdfVolume’s distance field: what the cook puts in
the volume’s payload and the renderer takes out of it.
An SdfVolume is the one asset whose shader source is only complete once a
world is loaded, because the world authors the field that goes in the middle
of the engine’s template. Every other engine shader is a build-time artifact.
Making this one a build-time artifact too is what keeps a shipped player from
needing a shader compiler: the cook runs slangc and stores what it emitted.
The field text rides along with the artifacts because a compiled artifact is only usable while the template it was built against still matches. The renderer assembles the source it expects, digests it, and takes the stored artifact only on a match; a hot-reload edit to the engine template misses every entry and recompiles, which is the behaviour that makes editing one possible at all.
Structs§
- SdfPrograms
- An
SdfVolume’s payload: the authored field plus every entry the cook compiled from it.