> For the complete documentation index, see [llms.txt](https://scenegroup.gitbook.io/cavalry/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://scenegroup.gitbook.io/cavalry/nodes/effects/image-shader.md).

# Image Shader

An image shader

**Blend Mode** - set the [blend mode](/cavalry/user-interface/general/blend-modes.md) for the layer.

**Alpha** - set how opaque/transparent a shape is.

**File** - drag in an image file from the [Asset Window](/cavalry/user-interface/menus/window-menu/asset-window.md).

**Filter** - These settings can improve image quality in both the [Viewport](https://app.gitbook.com/user-interface/menus/window-menu/viewport) and for renders – particularly when resizing images.

* **None (Fastest)** - Use when speed is of paramount importance. No resampling will be performed when the images are resized – this is the lowest quality setting.
* **Bilinear** - Basic resampling is performed. This is low quality but it's very fast.
* **Mipmaps** - Mipmaps are pre-calculated, optimised, low resolution versions of the image created via Bilinear interpolation. These are used to get the best quality and performance when scaling images down.
* **Bicubic** - This is the slowest method but it produces the best quality when scaling images up.

**Scale Mode** -&#x20;

* **None** - do not scale.
* **Fit** - fit the image to the Shape based on the longest edge whilst retaining the aspect ratio of the image.
* **Fit Horizontally -** fit the image to the Shape's horizontal edge whilst retaining the aspect ratio of the image.
* **Fit Vertically -** fit the image to the Shape's vertical edge whilst retaining the aspect ratio of the image.

**Tiling** - determine what happens at the borders of your gradient.

* **Clamp** - use the first and last values of your gradient.
* **Repeat** - repeat/ loop the gradient.
* **Mirror** - mirror/ ping pong the gradient.
* **Decal** - cut out the gradient.

**Scale** - increase/ decrease the scale of your image.

**Offset** - offset the position of the image.

**Looping** - when checked an [Image Sequence](/cavalry/user-interface/menus/window-menu/asset-window/image-sequences.md) will be set to infinitely loop.

**FPS** - set the frame rate an [Image Sequence](/cavalry/user-interface/menus/window-menu/asset-window/image-sequences.md) will play back at. By default this control is connected to the composition's frame rate but you can manually set it by removing the connection.

**Time** -&#x20;
