Test & Small fixes

This commit is contained in:
Michel Fedde 2021-03-18 09:23:00 +01:00
parent 21eaaa4900
commit 3e635aa57d
3 changed files with 2 additions and 3 deletions

View file

@ -113,7 +113,6 @@ namespace SM.Base.PostEffects
_shader.Draw(collection =>
{
collection["renderedTexture"].SetTexture(first ? _source.ColorAttachments["color"] : (hoz ? _yBuffer : _xBuffer));
collection["RenderScale"].SetUniform1(_textureScale);
collection["First"].SetUniform1(first);
collection["Threshold"].SetUniform1(Threshold);

View file

@ -107,7 +107,7 @@ namespace SM.Base.Windows
protected override void OnClosing(CancelEventArgs e)
{
base.OnClosing(e);
_fixedUpdateThread.Abort();
_fixedUpdateThread?.Abort();
}
public void Update(UpdateContext context)

View file

@ -18,7 +18,7 @@ namespace SM_TEST
{
_bloom = new BloomEffect(hdr: true)
{
Threshold = .8f,
Threshold = .5f,
};
MainFramebuffer = CreateWindowFramebuffer();