ThreePipe
    Preparing search index...

    Class MaterialPreviewGenerator

    Renders previews of materials on a shape (sphere, cube, cylinder) or a given geometry, with the viewer's renderer in a private scene (layer 7), so the previews share the shaders and textures of the viewport.

    For previews that are requested on every material change (an inspector), see MaterialPreviewPlugin.

    Implements

    Index

    Camera of the offscreen previews (one camera, since three.js keeps some state per camera).

    meshCameraDirection: Vector3 = ...

    Camera direction of the mesh shape, from the centre of the geometry's bounds. The distance is fitted to the bounds.

    shapes: Record<string, Mesh> = ...