reenable bloom on web

This commit is contained in:
Nick Fisher
2024-05-21 16:39:23 +08:00
parent 26f0c4a5b4
commit 443a4ba0d4

View File

@@ -269,13 +269,8 @@ namespace flutter_filament
void FilamentViewer::setBloom(float strength)
{
decltype(_view->getBloomOptions()) opts;
#ifdef __EMSCRIPTEN__
opts.enabled = false;
Log("Bloom is disabled on WebGL builds as it causes instability with certain drivers. setBloom will be ignored");
#else
opts.enabled = true;
opts.strength = strength;
#endif
_view->setBloomOptions(opts);
}