ImageTexture

Display an image with customizable object-fit modes

Props

  • url

    Upload an image or provide a URL

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

    How the image should be sized within the viewport

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

Usage

<Shader>
  <ImageTexture />
</Shader>