Esempio n. 1
0
        protected override void InitializeCore()
        {
            base.InitializeCore();

            multiScaler = ToLoadAndUnload(new ImageMultiScaler());
            blur        = ToLoadAndUnload(new GaussianBlur());
            afterimage  = ToLoadAndUnload(afterimage);
        }
Esempio n. 2
0
        protected override void InitializeCore()
        {
            base.InitializeCore();

            LuminanceLogEffect = ToLoadAndUnload(new LuminanceLogEffect());

            // Create 1x1 texture
            luminance1x1 = Texture.New2D(GraphicsDevice, 1, 1, 1, luminanceFormat, TextureFlags.ShaderResource | TextureFlags.RenderTarget).DisposeBy(this);

            // Use a multiscaler
            multiScaler = ToLoadAndUnload(new ImageMultiScaler());

            // Readback is always going to be done on the 1x1 texture
            readback = ToLoadAndUnload(readback);

            // Blur used before upscaling
            blur        = ToLoadAndUnload(new GaussianBlur());
            blur.Radius = 4;
        }
Esempio n. 3
0
        protected override void InitializeCore()
        {
            base.InitializeCore();

            LuminanceLogEffect = ToLoadAndUnload(new LuminanceLogEffect());

            // Create 1x1 texture
            luminance1x1 = Texture.New2D(GraphicsDevice, 1, 1, 1, luminanceFormat, TextureFlags.ShaderResource | TextureFlags.RenderTarget).DisposeBy(this);

            // Use a multiscaler
            multiScaler = ToLoadAndUnload(new ImageMultiScaler());

            // Readback is always going to be done on the 1x1 texture
            readback = ToLoadAndUnload(readback);

            // Blur used before upscaling 
            blur = ToLoadAndUnload(new GaussianBlur());
            blur.Radius = 4;
        }
Esempio n. 4
0
        protected override void InitializeCore()
        {
            base.InitializeCore();

            multiScaler = ToLoadAndUnload(new ImageMultiScaler());
            blur = ToLoadAndUnload(new GaussianBlur());
            afterimage = ToLoadAndUnload(afterimage);
        }