Last updated
Last updated
Here are described steps for integrating Advanced Dissolve into Unity 2019.4 Shader Graph:
Add Advanced Dissolve node and connect its output to the Alpha Clip Threshold field:
Advanced Dissolve node is available from the create node context menu: Amazing Assets -> Advanced Dissolve.
Advanced Dissolve node itself does nothing here. Its output value is always 0. This node serves as a "marker" for the HLSL shader generator.
When shader is ready and Advanced Dissolve node has been added, save it.
Now, select Master Node and from the context menu choose the Copy Shader option:
This copies Shader Graph code into the system memory in HLSL format.
Inside Project window create basic Unlit shader (not Shader Graph's Unlit) and rename it to have the same name as the .shaderGraph file:
Select just created Unlit shader file inside Project window and from the context menu choose Amazing Assets -> Advanced Dissolve -> Generate Shader:
This will generate HLSL shader, exactly the same as the .shadergraph file, but with integrated Advanced Dissolve features. Shader is ready to be used in materials.
Keep original .shaderGraph file and if in the future some changes are required, just repeat steps 3 and 5. In this case creating new Unlit shader as in the step 4 is not necessary, as HLSL code copied from the master node can be pasty into any .shader file.