> For the complete documentation index, see [llms.txt](https://amazing-assets.gitbook.io/advanced-dissolve/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://amazing-assets.gitbook.io/advanced-dissolve/shader-graph-integration.md).

# Shader Graph Integration

Advanced Dissolve effect cannot be created inside Unity's Shade Graph using just one or several nodes, however it can be integrated into HSLS shader file generated from the Shader Graph.

{% hint style="info" %}
Steps describe here are valid for Unity 2022.3 and later versions. In the case of using earlier Unity versions, check appropriate sub-chapter below.
{% endhint %}

Add **Advanced Dissolve** node to the Shader Graph from the **Amazing Assets** -> **Advanced Dissolve** menu and connect its output to the the **Alpha Clip Threshold** field:

<figure><img src="https://371873058-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDmmEjlCGzGOqRX7UsP6L%2Fuploads%2FqU9V3I9399ZPfzlkYTsx%2FShaderGraph_Advanced_Dissolve_Node_new.png?alt=media&amp;token=7491838c-f427-4c73-b8e9-fddc4c7d1084" alt=""><figcaption></figcaption></figure>

{% hint style="warning" %}
Note, **Advanced Dissolve** node can only be integrated into shader with **Alpha Clip** feature enabled:

![](https://371873058-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDmmEjlCGzGOqRX7UsP6L%2Fuploads%2FDXFwylqnjJylntSqdiXW%2FShaderGraph_Alpha_Clip_Enabled.png?alt=media\&token=6f54f41d-a9d4-48fe-b900-1a1cf3fd5e5a)
{% endhint %}

When shader is ready, click on the **Generate Advanced Dissolve Shader** button inside node. This creates copy of the current Shader Graph but written as HLSL file. Advanced Dissolve features will be integrated into this shader file.&#x20;

Use generated ***.shader*** file instead of Shader Graph file and in the case of modifications are required, after updating graph, click on the **Generate Advanced Dissolve Shader** button again.

{% hint style="warning" %}
Note, generated ***.shader*** file has the same name as the source ***.shaderGraph*** file, but with **(Advanced Dissolve)** suffix in the end. If folder already contains file with such name, it will be overwritten.&#x20;
{% endhint %}
