Engine barely starts again

This commit is contained in:
Simon Lübeß
2024-11-21 18:16:41 +01:00
parent ad73abd4ea
commit bcf75bf8cb
32 changed files with 299 additions and 161 deletions
+16 -10
View File
@@ -152,12 +152,15 @@ class SceneRenderer
Effect gammaEffect = Content.GetAsset<Effect>(_gammaCorrectEffect);
gammaEffect.SetTexture("Texture", _compositeTarget, 0);
// TODO: iiihhh
gammaEffect.ApplyChanges();
gammaEffect.Bind();
if (gammaEffect != null)
{
gammaEffect.SetTexture("Texture", _compositeTarget, 0);
// TODO: iiihhh
gammaEffect.ApplyChanges();
gammaEffect.Bind();
FullscreenQuad.Draw();
FullscreenQuad.Draw();
}
}
finalTarget.ReleaseRef();
@@ -249,12 +252,15 @@ class SceneRenderer
Effect gammaEffect = Content.GetAsset<Effect>(_gammaCorrectEffect);
gammaEffect.SetTexture("Texture", _compositeTarget, 0);
// TODO: iiihhh
gammaEffect.ApplyChanges();
gammaEffect.Bind();
if (gammaEffect != null)
{
gammaEffect.SetTexture("Texture", _compositeTarget, 0);
// TODO: iiihhh
gammaEffect.ApplyChanges();
gammaEffect.Bind();
FullscreenQuad.Draw();
FullscreenQuad.Draw();
}
}
viewportTarget.ReleaseRef();