Documentation

ImageTexture

Display an image with customizable object-fit modes

Props

urlstring
Default:https://shaders.com/sample.jpg
Upload an image or provide a URL
objectFit"cover" | "contain" | "fill" | "scale-down" | "none"
Default:cover
How the image should be sized within the viewport

Usage

<Shader>
  <ImageTexture />
</Shader>