OptionalcameraDirection from the object to the camera (it is normalized), to turn the preview: a drag on the preview can set it.
Default MaterialPreviewGenerator.meshCameraDirection for the mesh shape, (0, 0, 1) for the others.
OptionalcameraDistance of the camera as a factor of the default framing: 1 (default) frames the shape, less is closer.
OptionalenvironmentEnvironment map. Use the viewer's to match the viewport, see materialPreviewOptionsFromViewer.
OptionalenvironmentSame as scene.environmentIntensity. Default 1
OptionalenvironmentSame as scene.environmentRotation. Default no rotation
OptionalgeometryGeometry for the mesh shape (like the geometry of the selected mesh). It is not changed.
OptionallightAdd the hemisphere light of the preview scene. Default: only when there is no environment map, or the material
is not lit by the scene environment (only MeshStandardMaterial and MeshPhysicalMaterial are, not Phong, Lambert or Basic),
so that a material lit by the environment map looks the same as in the viewport, and the other materials are not black.
OptionaloutputOutput colour space, SRGBColorSpace (default) or linear.
OptionalsamplesMSAA samples. Default 4
OptionalshapeDefault sphere. mesh renders geometry alone, framed with a camera fitted to its bounds.
OptionalsizeSize of the preview in pixels. Default 256
OptionaltoneTone mapping, see SnapObjectToneMapping. Default none
Options of MaterialPreviewGenerator.renderPixels and MaterialPreviewGenerator.renderToCanvas.