import React from 'react'; import { HeadMaskMesh as HeadMaskMeshImpl, FaceAnchorGroup } from '@zappar/zappar-threejs'; import { ForwardRefComponent } from './util/utils.js'; export interface HeadMaskMeshProps extends React.ComponentPropsWithRef<'primitive'> { /** Provide a reference to the FaceAnchorGroup component. */ trackerGroup: React.MutableRefObject; } /** * A THREE.Mesh that fits the user's head and fills the depth buffer, * ensuring that the camera image of the head shows instead of any 3D elements behind it in the scene. * * Works using a full-head FaceMesh with the mouth, eyes and neck filled in. * Its renderOrder is set to Number.MIN_SAFE_INTEGER to ensure it's rendered before any other objects in the scene, * and its material has the colorWrite property set to false so it fills the depth buffer but not the color buffer. * @see https://docs.zap.works/universal-ar/web-libraries/react-threejs/face-tracking/ */ declare const HeadMaskMesh: ForwardRefComponent; export default HeadMaskMesh;