Toggle Sidebar B
Light & dark mode D

ImageTexture

Display an image with customizable object-fit modes

Display an image with customizable object-fit modes

Props

PropTypeDefaultDescription
urlimage-uploadhttps://shaders.com/sample.jpgUpload an image or provide a URL
objectFit"cover" | "contain" | "fill" | "scale-down" | "none"coverHow the image should be sized within the viewport

Usage

vue
<Shader>
  <ImageTexture />
</Shader>