public ColorTransformContext(ColorTransformGroup @group) { this.group = group; inputs = new List <Texture>(); sharedParameters = group.Parameters; transformParameters = new ParameterCollection(); }
/// <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); }