WebcamTexture

Display a live webcam feed with customizable object-fit modes

Props

  • objectFit

    How the webcam feed should be sized within the viewport

    Type
    "cover" | "contain" | "fill" | "scale-down" | "none"
    Default
    cover
  • mirror

    Mirror the webcam feed horizontally (selfie mode)

    Type
    boolean
    Default
    true

Usage

<Shader>
  <WebcamTexture />
</Shader>