# Alpha Material Override

### Intro

**Material Overrides** allow you to edit materials inside complex/deep mesh structures like SVGs or Text. This can be achieved via the [Sub-Mesh](https://scenegroup.gitbook.io/cavalry/nodes/behaviours/sub-mesh) Behaviour's Fill or Stroke tabs.

When you add an **Alpha Material Override** to a Sub Mesh you can blend between the original alpha and the one you set. You can then, for example, connect a [Falloff](https://scenegroup.gitbook.io/cavalry/nodes/utilities/falloff) to the **Sub-Mesh** to control the effect.

### UI

[Common Attributes](https://scenegroup.gitbook.io/cavalry/nodes/behaviours/common-attributes-behaviours) +

**Alpha** - set a value for the alpha.

{% hint style="info" %}

1. Import an SVG into the [Assets Window](https://scenegroup.gitbook.io/cavalry/user-interface/menus/window-menu/asset-window).
2. Drag it in to the [Viewport](https://scenegroup.gitbook.io/cavalry/user-interface/menus/window-menu/viewport) to create an [SVG Shape](https://scenegroup.gitbook.io/cavalry/nodes/shapes/svg-shape).
3. Connect a [Sub-Mesh](https://scenegroup.gitbook.io/cavalry/nodes/behaviours/sub-mesh) to the **Deformer** attribute of the **SVG Shape**.
4. On the **Sub-Mesh**, switch to the **Fill** tab in the [Attribute Editor](https://scenegroup.gitbook.io/cavalry/user-interface/menus/window-menu/attribute-editor).
5. Use the `+` button to add an **Alpha Material Override** to the **Fill Overrides** attribute.
6. Set **Alpha** to **0.**
7. On the **Sub-Mesh**, open the **Falloff** tab and right click to add a [Falloff](https://scenegroup.gitbook.io/cavalry/nodes/utilities/falloff).
8. Move the **Falloff** over the **SVG Shape**.

As the Falloff moves over parts of the SVG they will become transparent.
{% endhint %}

![Overriding the alpha in an SVG from 100 to 0 via a Falloff](https://1676825895-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LT2-S1m8aSPAI_Gg3Q1%2F-MKFAE72uez5qDX5OW5J%2F-MKFChei11Czq5dQDbc5%2FAlphaMaterialOverride.png?alt=media\&token=6a4e08bb-fc8a-42b2-9388-8dc02bfc628d)
