I am having some issues importing GlowLayer into my project. Everything works fine on a playground subdivision of my code. It glows as intended. However, when I try importing the GlowLayer into my entire project (offline, not playground), I get the following error:
effectLayer.js?b602:215 Uncaught TypeError: this._scene.getBoundingBoxRenderer is not a function
at GlowLayer.EffectLayer._createMainTexture (effectLayer.js?b602:215)
at GlowLayer.EffectLayer._init (effectLayer.js?b602:122)
at new GlowLayer (glowLayer.js?33c1:50)
I am importing GlowLayer and using it like this:
import {GlowLayer} from “@babylonjs/core/Layers”;
[…]
var glow = new GlowLayer(“glow”, scene);
Anyone have any idea what I am missing here?