Customizing Viewer Scene
This example illustrates how to add a custom object to a scene such that it is rendered the same way as the model that is loaded.
The button on the top left, titled Add Sphere, has an event listener associated with it. When clicked, the event handler checks for the existence of a scene named custom-scene, and creates it if it doesn’t exist. It then adds a randomly placed sphere to the scene.