protected override async Task LoadContent() { await base.LoadContent(); hdrTexture = await Asset.LoadAsync<Texture>("Atrium"); hdrRenderTexture = Texture.New2D(GraphicsDevice, hdrTexture.Width, hdrTexture.Height, 1, hdrTexture.Format, TextureFlags.ShaderResource | TextureFlags.RenderTarget); drawEffectContext = RenderContext.GetShared(Services); postProcessingEffects = new PostProcessingEffects(drawEffectContext); postProcessingEffects.BrightFilter.Threshold = 100.0f; postProcessingEffects.Bloom.DownScale = 2; }
/// <summary> /// Initializes a new instance of the <see cref="SceneEditorGraphicsModeHDRSettings"/> class. /// </summary> public SceneEditorGraphicsModeHDRSettings() { BackgroundColor = (Color3)new Color(120, 120, 120); PostProcessingEffects = new PostProcessingEffects(); }