Customizing Viewer UI
This example illustrates adding a custom button next to the Viewer toolbar. The event handler for the button’s onClick event changes the lighting preset of the Viewer to Snow Field (16).
Tip Open the example in CodePen and experiment with changing the button tooltip text and the lighting value. To turn off the background image for a lighting environment, click the Settings button, Environment tab, and move the control for Environment Image Visible to the left (off) position.