Toggle Sidebar B
Light & dark mode D

VideoTexture

Display a video with customizable playback and object-fit modes

Display a video with customizable playback and object-fit modes

Props

PropTypeDefaultDescription
urlvideo-uploadhttps://shaders.com/sample.mp4Upload a video or provide a URL
objectFit"cover" | "contain" | "fill" | "scale-down" | "none"coverHow the video should be sized within the viewport
loopcheckboxtrueLoop the video playback

Usage

vue
<Shader>
  <VideoTexture />
</Shader>