ThreePipe
    Preparing search index...

    Interface MaterialPreviewRequestOptions

    interface MaterialPreviewRequestOptions {
        cameraDirection?: Vector3;
        cameraDistance?: number;
        dragInterval?: number;
        geometry?: BufferGeometry<NormalBufferAttributes, BufferGeometryEventMap>;
        shape?: MaterialPreviewShape;
        size?: number;
    }
    Index
    cameraDirection?: Vector3

    Direction from the object to the camera, to turn the preview (a drag on the preview can set it). See MaterialPreviewOptions.cameraDirection. Part of the cache key.

    cameraDistance?: number

    Distance of the camera as a factor of the default framing (1). See MaterialPreviewOptions.cameraDistance. Part of the cache key.

    dragInterval?: number

    The minimum time in ms between two previews of this request while its material changes continuously, in place of MaterialPreviewPlugin.dragInterval. When requests for the same preview give different values, the smallest is used.

    Geometry for the mesh shape.

    Default sphere. mesh renders geometry alone (like the geometry of the selected mesh).

    size?: number

    Size in pixels. Default MaterialPreviewPlugin.size