private static readonly int _Progress | Shader property id for the fade amount. |
private Coroutine animationCoroutine | The running fade, if any. |
private float animationDuration | Seconds a fade takes. |
private Material animationMaterial | Instance of animationMaterialBase made on first fade. |
private Material animationMaterialBase | Material with the fade shader, copied for the animation. |
private bool btnFadeIn | Inspector test button for fading in. |
private bool btnFadeOut | Inspector test button for fading out. |
private Material fixedMaterial | The renderer's normal material, put back after each fade. |
private Renderer targetRenderer | Renderer that fades. |