re-introduce guards for bloom on Emscripten

This commit is contained in:
Nick Fisher
2024-06-12 18:51:45 +08:00
parent 3b6969909c
commit d4cd3c23fb

View File

@@ -276,10 +276,12 @@ namespace flutter_filament
void FilamentViewer::setBloom(float strength)
{
#ifndef __EMSCRIPTEN__
decltype(_view->getBloomOptions()) opts;
opts.enabled = true;
opts.strength = strength;
_view->setBloomOptions(opts);
#endif
}
void FilamentViewer::setToneMapping(ToneMapping toneMapping)