Skip to main content

SpectralMaterialTransition.Animator

A private class in Root.Township, the global namespace. Reach it through att-stubs' publicized assemblies or Harmony's AccessTools.

Swaps one source material on a group of renderers between its normal, spectral and transition versions for SpectralMaterialTransition. Client only; the component skips it on a headless server.

Constructors​

MemberWhat it is
Animator(Material original, Material baseSpectral, Material baseTransition)Creates a SpectralMaterialTransition.Animator from original, baseSpectral and baseTransition.

Fields​

3 private and internal fields
MemberWhat it is
private readonly Material originalThe renderers' original shared material.
private readonly Material spectralSpectral copy with the original's main texture and normal map, or the base spectral material if there is no texture.
private readonly Material transitionCopy of the transition material used while animating between the two looks.

Properties​

MemberWhat it is
List<Renderer> Renderers { get; }The renderers that share this original material.

Methods​

MemberWhat it is
void Lerp(int property, float progress)Sets a float property (materialization, fade or cracks progress) on the transition material.
void Snap(bool isMaterialized)Puts the original or the spectral material on every renderer at once and resets the cracks progress.
void StartLerp()Puts the transition material on every renderer so progress values can animate it.

Used in​

Members of other types that take, return or hold a Animator: