Fragment brightness has now a effect on the radius

This commit is contained in:
Michel Fedde 2021-03-24 14:02:48 +01:00
parent ddd2171da2
commit 9fa1ac6ad9
3 changed files with 9 additions and 8 deletions

View file

@ -16,11 +16,11 @@ namespace SM_TEST
MainFramebuffer = CreateWindowFramebuffer(16, PixelInformation.RGBA_HDR);
_postBuffer = CreateWindowFramebuffer(0, depth: false);
_postBuffer = CreateWindowFramebuffer(0, PixelInformation.RGBA_HDR, depth: false);
Framebuffers.Add(_postBuffer);
_bloom = new BloomEffect(_postBuffer, hdr: true, .5f)
{
Threshold = .5f
Threshold = .8f,
};
@ -40,7 +40,7 @@ namespace SM_TEST
_bloom.Draw(context);
Framebuffer.Screen.Activate(ClearBufferMask.ColorBufferBit | ClearBufferMask.DepthBufferBit);
PostProcessUtility.FinalizeHDR(_postBuffer["color"], 1);
PostProcessUtility.FinalizeHDR(_postBuffer["color"], .5f);
context.Scene.DrawDebug(context);
}