Update StarClientApplication.cpp

This commit is contained in:
Bottinator22 2024-12-18 18:13:34 -08:00 committed by GitHub
parent 1d80822543
commit 2ffe114686
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -406,10 +406,12 @@ void ClientApplication::render() {
auto size = Vec2F(renderer->screenSize());
auto quad = renderFlatRect(RectF::withSize(size / -2, size), Vec4B::filled(0), 0.0f);
for (auto& layer : m_postProcessLayers) {
for (unsigned i = 0; i < layer.passes; i++) {
for (auto& effect : layer.effects) {
renderer->switchEffectConfig(effect);
renderer->render(quad);
if (layer.group ? layer.group->enabled : true) {
for (unsigned i = 0; i < layer.passes; i++) {
for (auto& effect : layer.effects) {
renderer->switchEffectConfig(effect);
renderer->render(quad);
}
}
}
}