RenderAPI changes and removed Context parameter from Effect and Material

This commit is contained in:
Simon Lübeß
2022-11-27 17:18:16 +01:00
parent d47ac23e1b
commit dffd43a36f
14 changed files with 89 additions and 52 deletions
+4 -2
View File
@@ -270,7 +270,8 @@ namespace GlitchyEngine.World
_gammaCorrectEffect.SetTexture("Texture", _compositeTarget, 0);
// TODO: iiihhh
_gammaCorrectEffect.Bind(Application.Get().Window.Context);
_gammaCorrectEffect.ApplyChanges();
_gammaCorrectEffect.Bind();
FullscreenQuad.Draw();
}
@@ -483,7 +484,8 @@ namespace GlitchyEngine.World
_gammaCorrectEffect.SetTexture("Texture", _compositeTarget, 0);
// TODO: iiihhh
_gammaCorrectEffect.Bind(Application.Get().Window.Context);
_gammaCorrectEffect.ApplyChanges();
_gammaCorrectEffect.Bind();
FullscreenQuad.Draw();
}