예제 #1
0
 public ColorTransformContext(ColorTransformGroup @group)
 {
     this.group          = group;
     inputs              = new List <Texture>();
     sharedParameters    = group.Parameters;
     transformParameters = new ParameterCollection();
 }
예제 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ImageEffectBundle"/> class.
 /// </summary>
 /// <param name="context">The context.</param>
 public ImageEffectBundle(ImageEffectContext context)
     : base(context)
 {
     luminanceEffect     = new LuminanceEffect(Context);
     brightFilter        = new BrightFilter(Context);
     bloom               = new Bloom(Context);
     colorTransformGroup = new ColorTransformGroup(Context);
     toneMap             = new ToneMap();
     colorTransformGroup.Transforms.Add(toneMap);
 }