示例#1
0
  public FilmFilter(float angle) {
    gradient = new GradientFilter();
    gradient.Gradient = Gradient.Fade();
    gradient.OriginAngleDegree = angle;

    saturationFx = new SaturationModifyFilter();
    saturationFx.SaturationFactor = -0.6f;
  }
示例#2
0
  public SceneFilter(float angle, Gradient gradient) {
    gradientFx = new GradientFilter();
    gradientFx.Gradient = gradient;
    gradientFx.OriginAngleDegree = angle;

    saturationFx = new SaturationModifyFilter();
    saturationFx.SaturationFactor = -0.6f;
  }