Appearance
Basic viewer
This is the smallest production viewer example. Orbit with the pointer, zoom with the wheel, and pan with the secondary pointer button.
What is happening
ModelLabViewer creates the React Three Fiber canvas, loads the model, adds lighting and controls, and fits the camera after the asset is ready.
The parent element must have a real height. The viewer expands to fill it.