RendererMaterializerHandler
A class in Root.Township, the global namespace.
Helper that fades a set of renderers in or out with a dissolve shader, then puts the original materials back. Used by RendererMaterializer, DockedDissolver and StewManager; client visuals.
- Listed in Global namespace: Q to R
Constructors
| Member | What it is |
|---|---|
RendererMaterializerHandler(Shader shader, Texture dissolveTexture) | Creates a RendererMaterializerHandler from shader and dissolveTexture. |
Fields
12 private and internal fields
| Member | What it is |
|---|---|
private List<Renderer> allRenderers | The renderers being animated. |
private static readonly int ColorShaderVariable | Shader id of _Color. |
private MonoBehaviour coroutineBehaviour | Behaviour the animation coroutines run on. |
private static readonly int DissolveShaderVariable | Shader id of _Dissolve, the dissolve noise texture. |
private static readonly int EmissionColorShaderVariable | Shader id of _EmissionColor. |
private static readonly int EmissionShaderVariable | Shader id of _Emission. |
private static readonly int MainTexture | Shader id of _MainTex. |
private AltaCoroutine materializationAnimation | The running materialise coroutine, so dematerialise can stop it. |
private List<Material> materialsToAnimate | Dissolve materials made so far. It is never cleared, so it grows with each run. |
private Dictionary<Renderer, Material> originalMaterials | Each renderer's material from before the first dissolve. |
private static Type particleSystemRenderer | Cached ParticleSystemRenderer type, skipped by SetTargetObject. |
private static readonly int ProgressShaderVariable | Shader id of _Progress, the dissolve amount. |
Properties
| Member | What it is |
|---|---|
Texture DissolveTexture { get; set; } | Noise texture set on every dissolve material. |
Shader Shader { get; set; } | The dissolve shader used for the temporary materials. |
Methods
8 private and internal methods
Used in
Members of other types that take, return or hold a RendererMaterializerHandler: