Ejemplo n.º 1
0
        protected override async Task LoadContent()
        {
            await base.LoadContent();

            hdrTexture = Content.Load<Texture>("HdrTexture");
            hdrRenderTexture = Texture.New2D(GraphicsDevice, hdrTexture.Width, hdrTexture.Height, 1, hdrTexture.Description.Format, TextureFlags.ShaderResource | TextureFlags.RenderTarget);
            drawEffectContext = RenderContext.GetShared(Services);
            postProcessingEffects = new PostProcessingEffects(drawEffectContext);
            postProcessingEffects.BrightFilter.Threshold = 100.0f;
            postProcessingEffects.Bloom.DownScale = 2;
            postProcessingEffects.Bloom.Enabled = true;
            postProcessingEffects.Bloom.ShowOnlyBloom = true;
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="SceneEditorGraphicsModeHDRSettings"/> class.
 /// </summary>
 public SceneEditorGraphicsModeHDRSettings()
 {
     BackgroundColor = (Color3)new Color(120, 120, 120);
     PostProcessingEffects = new PostProcessingEffects();
 }