Lens flare documentation example seems broken

The lens flare documentation example seems to be broken. Same in all Babylon.js versions.

  • Flare is not positioned on the candle wick
  • Because the example uses an arc rotate camera, there’s no parallax to showcase the flare unless the user pans the camera

cc @Evgeni_Popov

cc @Vinc3r, but I think it’s how it’s supposed to be. This is the commit of the PG in the repo: fixing textures links and adding a playground · BabylonJS/Documentation@fe13393 · GitHub.

See also:

OK, it may have been intentional, but I think it’s a poor example for lens flares.

Ideally the light source should be moving or, at the very least, positioned away from the camera target, otherwise you can’t really see the lens flare effect without panning the camera away from the initial camera target.

I’ll try to come up with a better example and raise a PR.

6 Likes