Test & Small fixes
This commit is contained in:
parent
21eaaa4900
commit
3e635aa57d
3 changed files with 2 additions and 3 deletions
|
|
@ -113,7 +113,6 @@ namespace SM.Base.PostEffects
|
||||||
_shader.Draw(collection =>
|
_shader.Draw(collection =>
|
||||||
{
|
{
|
||||||
collection["renderedTexture"].SetTexture(first ? _source.ColorAttachments["color"] : (hoz ? _yBuffer : _xBuffer));
|
collection["renderedTexture"].SetTexture(first ? _source.ColorAttachments["color"] : (hoz ? _yBuffer : _xBuffer));
|
||||||
collection["RenderScale"].SetUniform1(_textureScale);
|
|
||||||
|
|
||||||
collection["First"].SetUniform1(first);
|
collection["First"].SetUniform1(first);
|
||||||
collection["Threshold"].SetUniform1(Threshold);
|
collection["Threshold"].SetUniform1(Threshold);
|
||||||
|
|
|
||||||
|
|
@ -107,7 +107,7 @@ namespace SM.Base.Windows
|
||||||
protected override void OnClosing(CancelEventArgs e)
|
protected override void OnClosing(CancelEventArgs e)
|
||||||
{
|
{
|
||||||
base.OnClosing(e);
|
base.OnClosing(e);
|
||||||
_fixedUpdateThread.Abort();
|
_fixedUpdateThread?.Abort();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Update(UpdateContext context)
|
public void Update(UpdateContext context)
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ namespace SM_TEST
|
||||||
{
|
{
|
||||||
_bloom = new BloomEffect(hdr: true)
|
_bloom = new BloomEffect(hdr: true)
|
||||||
{
|
{
|
||||||
Threshold = .8f,
|
Threshold = .5f,
|
||||||
};
|
};
|
||||||
|
|
||||||
MainFramebuffer = CreateWindowFramebuffer();
|
MainFramebuffer = CreateWindowFramebuffer();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue