VideoTexture

Display a video with customizable playback and object-fit modes

Props

  • url

    Upload a video or provide a URL

    Type
    string
    Default
    https://shaders.com/sample.mp4
  • objectFit

    How the video should be sized within the viewport

    Type
    "cover" | "contain" | "fill" | "scale-down"
    Default
    fill
  • loop

    Loop the video playback

    Type
    boolean
    Default
    true

Usage

<Shader>
  <VideoTexture />
</Shader>