From 25cc554925825b2d6400a01b1ee87d12bac00c6f Mon Sep 17 00:00:00 2001 From: Philip Rideout Date: Mon, 10 May 2021 08:39:04 -0700 Subject: [PATCH] WASM: fix "Missing field" error for lensFlare. --- web/filament-js/extensions.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/web/filament-js/extensions.js b/web/filament-js/extensions.js index baaf47c7fc..9aca321030 100644 --- a/web/filament-js/extensions.js +++ b/web/filament-js/extensions.js @@ -275,7 +275,6 @@ Filament.loadClassExtensions = function() { Filament.View.prototype.setBloomOptions = function(overrides) { const options = { dirtStrength: 0.2, - highlight: 1000.0, strength: 0.10, resolution: 360, anamorphism: 1.0, @@ -283,6 +282,16 @@ Filament.loadClassExtensions = function() { blendMode: Filament.View$BloomOptions$BlendMode.ADD, threshold: true, enabled: false, + highlight: 1000.0, + lensFlare: false, + starburst: true, + chromaticAberration: 0.005, + ghostCount: 4, + ghostSpacing: 0.6, + ghostThreshold: 10.0, + haloThickness: 0.1, + haloRadius: 0.4, + haloThreshold: 10.0, dirt: null }; Object.assign(options, overrides);