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,6 +406,7 @@ 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) {
if (layer.group ? layer.group->enabled : true) {
for (unsigned i = 0; i < layer.passes; i++) {
for (auto& effect : layer.effects) {
renderer->switchEffectConfig(effect);
@ -414,6 +415,7 @@ void ClientApplication::render() {
}
}
}
}
renderer->switchEffectConfig("interface");
auto start = Time::monotonicMicroseconds();
m_mainInterface->renderInWorldElements();