Пример #1
0
 public void InitMemberByInstance(ContrastVignette contrastVignette)
 {
     center        = contrastVignette.center;
     sharpness     = contrastVignette.sharpness;
     darkness      = contrastVignette.darkness;
     contrast      = contrastVignette.contrast;
     contrastCoeff = contrastVignette.contrastCoeff;
     edgeBlending  = contrastVignette.edgeBlending;
 }
Пример #2
0
        public ContrastVignetteDef()
        {
            if (contrastVignetteEffect == null)
            {
                contrastVignetteEffect = Util.GetComponentVar <ContrastVignette, ContrastVignetteDef>(contrastVignetteEffect);
            }

            center        = new Vector2(0.5f, 0.5f);
            sharpness     = 32f;
            darkness      = 28f;
            contrast      = 20.0f;
            contrastCoeff = new Vector3(0.5f, 0.5f, 0.5f);
            edgeBlending  = 0f;
        }