Production of Unity ShaderGraph Dissolving Special Effects

The dissolve effect is a commonly used effect in the game, which can be used to disappear when the character dies. The principle of the dissolution effect is to realize the effect of random disappearance on the model or the irregular disappearance of the model from presence to absence through a noise map.

  • The core idea is actually to make effects on the alpha parameter, use the noise node to create a noise map, and adjust the size of the noise to an appropriate size. The output of the noise node is actually an alpha map in the sense of art, or you can draw one yourself and want to import it as texture2d. At this time, if you directly give the picture as alpha to the alpha parameter of the material, you can see the effect immediately, but it will not move.
  • Create a time node and use sinetime to output the time, because the value range of sin is -1 to 1, which can make the single increase the size of the cycle.
  • Add a color node color, and multiply the data output by the step with multiply to get a new color, which is placed on the self-illumination parameter emission of the material. This will make it look like the dissolved edges are glowing.

Noise map size

The size of the noise graph dissolved epiluminescence
dissolves the outer glow
overall
shader graph as a whole, remember to click Save Asset after the link is completed to save it as a resource.
Then assign it to the shader and mount the shader on the object of the scene
insert image description here

The effect is as follows

scrj

Guess you like

Origin blog.csdn.net/qq_45498613/article/details/130911806