public void InitMemberByInstance(ShadowsMidtonesHighlights shadowsMidtonesHighlights)
 {
     mode       = shadowsMidtonesHighlights.mode;
     shadows    = shadowsMidtonesHighlights.shadows;
     midtones   = shadowsMidtonesHighlights.midtones;
     highlights = shadowsMidtonesHighlights.highlights;
     amount     = shadowsMidtonesHighlights.amount;
 }
        public ShadowsMidtonesHighlightsDef()
        {
            if (shadowsMidtonesHighlightsEffect == null)
            {
                shadowsMidtonesHighlightsEffect = Util.GetComponentVar <ShadowsMidtonesHighlights, ShadowsMidtonesHighlightsDef>(shadowsMidtonesHighlightsEffect);
            }

            mode       = ShadowsMidtonesHighlights.ColorMode.LiftGammaGain;
            shadows    = new Color(1f, 1f, 1f, 0.5f);
            midtones   = new Color(1f, 1f, 1f, 0.5f);
            highlights = new Color(1f, 1f, 1f, 0.5f);
            amount     = 1f;
        }