add enabled/strength params for bloom

This commit is contained in:
Nick Fisher
2025-03-01 11:44:40 +08:00
parent 16ff7ef008
commit 7131e7ab86
2 changed files with 119 additions and 4 deletions

View File

@@ -572,13 +572,12 @@ extern "C"
});
auto fut = _rl->add_task(lambda);
}
EMSCRIPTEN_KEEPALIVE void View_setBloomRenderThread(TView *tView, double bloom)
{
EMSCRIPTEN_KEEPALIVE void View_setBloomRenderThread(TView *tView, bool enabled, double strength) {
std::packaged_task<void()> lambda(
[=]
{
View_setBloom(tView, bloom);
View_setBloom(tView, enabled, strength);
});
auto fut = _rl->add_task(lambda);
}