ImageTexture
Display an image with customizable object-fit modes
Display an image with customizable object-fit modes
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| url | image-upload | https://shaders.com/sample.jpg | Upload an image or provide a URL |
| objectFit | "cover" | "contain" | "fill" | "scale-down" | "none" | cover | How the image should be sized within the viewport |
Usage
vue
<Shader>
<ImageTexture />
</Shader>