Lens Flare

Here is another gift for New Year's: the source files of our first demo app called The Island are now included in the free Blend4Web SDK! You'll find the materials for the terrain, sea and waterfall, learn how smoke and splash particles are set up, what is behind the lens flare effect, how animation works and how the trees and other objects are arranged.

From the release notes of B4W 14.12. So i guess you should have a look to the island files for a start.

So i am under the impression that the lens flare object has a transparent texture that is hardly visible but that cast reflexion. So what we see isn't the texture of the object but really the reflexion of it.Is that right?

In fact we see through the lens flare object. But i don't understand how it goes from under the island to way high in the sky????

In fact we see through the lens flare object. But i don't understand how it goes from under the island to way high in the sky????

The lens flare effect is a very old and "hacky" feature inherited from the first WebGL experiments made long before Blend4Web was first released. We have in our plans to make it configurable as it is with other Blend4Web features. For now you can experiment with (re)moving planes in this "object" to get an idea how it works.