WorldRenderer refactor

This commit is contained in:
MihailRis 2024-03-08 22:21:18 +03:00
parent 8ea3db9962
commit 07dc12143e
4 changed files with 163 additions and 118 deletions

View file

@ -29,7 +29,7 @@ void PostProcessing::use(GfxContext& context) {
context.setFramebuffer(fbo.get());
}
void PostProcessing::render(GfxContext& context, Shader* screenShader) {
void PostProcessing::render(const GfxContext& context, Shader* screenShader) {
if (fbo == nullptr) {
throw std::runtime_error("'use(...)' was never called");
}