Documentation

VideoTexture

Display a video with customizable playback and object-fit modes

Props

urlstring
Default:https://shaders.com/sample.mp4
Upload a video or provide a URL
objectFit"cover" | "contain" | "fill" | "scale-down" | "none"
Default:cover
How the video should be sized within the viewport
loopboolean
Default:true
Loop the video playback

Usage

<Shader>
  <VideoTexture />
</Shader>