Changing materials and textures is a must-have feature which has been used widely by application developers in real-life Blend4Web-powered product customizers. This example demonstrates how to use Blend4Web API to swap 2D images and cubemaps in runtime.
As you can see, changing a cubemap texture affects all image-based rendering paths including mirror reflection, environment lighting and the sky.
You can browse through the code listing by clicking the View Code button. The source files for this example are present in both Community Edition and PRO distributions.
See also: