About Directional Dissolve Shader (Legacy)
- Art & Visuals > VFX
- Art & Visuals > Textures & Materials
This lit 2D shader allows you to create a surface dissolve effect (e.g. for dying or disappearing enemies) that moves in a predefined direction across the sprite instead of dissolving everywhere on the surface. The shader preserves all default shader options (metallic maps, normal maps, emission, ambient occlusion...).
The direction is defined by a black-white gradient texture (easily made with Photoshop's Gradient tool, or other image editing programs). 4 such gradient "noise" textures - horizontal, vertical, irregular and circular gradient - are included in the pack.
Additionally, the dissolve effect has fully customizable thickness, emission and speed.
Shader options:
Albedo Texture
Albedo Color
Alpha Cutoff
Metallic Map
Metallic
Normal Map
Normal Strength
Emission Map
Emission Color
Emission Extra Intensity
Noise Texture
Dissolve Edge Thickness
Dissolve Edge Color (an emissive color)
Dissolve Effect Controller
Ambient Occlusion
BONUS: The Shader Graph Subgraph asset included in this pack is a reconstructed standard lit shader. As such, it can be imported into your custom Shader Graph shaders, allowing you to both create custom shader effects and keep the standard shader options such as normal maps, emission, etc. For more information, see our FREE Reconstructed Lit Shader.
NOTE: In case you are using the Built-In Renderer, use folder "Built-In Renderer". In case you are using URP, there are 2 options - folder "2D Renderer" for URP's 2D Renderer (default renderer when creating a project using the URP 2D Template), and folder "Universal Renderer" for URP's Universal Renderer (default renderer when creating a project using the URP 3D Template).
The direction is defined by a black-white gradient texture (easily made with Photoshop's Gradient tool, or other image editing programs). 4 such gradient "noise" textures - horizontal, vertical, irregular and circular gradient - are included in the pack.
Additionally, the dissolve effect has fully customizable thickness, emission and speed.
Shader options:
Albedo Texture
Albedo Color
Alpha Cutoff
Metallic Map
Metallic
Normal Map
Normal Strength
Emission Map
Emission Color
Emission Extra Intensity
Noise Texture
Dissolve Edge Thickness
Dissolve Edge Color (an emissive color)
Dissolve Effect Controller
Ambient Occlusion
BONUS: The Shader Graph Subgraph asset included in this pack is a reconstructed standard lit shader. As such, it can be imported into your custom Shader Graph shaders, allowing you to both create custom shader effects and keep the standard shader options such as normal maps, emission, etc. For more information, see our FREE Reconstructed Lit Shader.
NOTE: In case you are using the Built-In Renderer, use folder "Built-In Renderer". In case you are using URP, there are 2 options - folder "2D Renderer" for URP's 2D Renderer (default renderer when creating a project using the URP 2D Template), and folder "Universal Renderer" for URP's Universal Renderer (default renderer when creating a project using the URP 3D Template).