Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Question How can I create this non screen-space 'Ripple-Shockwave' effect?

Discussion in 'Shader Graph' started by Dennooo, Oct 22, 2022.

  1. Dennooo

    Dennooo

    Joined:
    May 12, 2015
    Posts:
    78
    Hi there,

    what I want to a achieve is a displacement effect like this:



    I found this great tutorial which provided a good baseline:

    However, I don't want to implement this as a screen-space effect or only render the 'shockwave effect' to the sprite but make a ring-sprite transparent and displace everything that renders below that ring-sprite.

    Do any of you have a good starting point on how to implement something like this in URP?

    Many thanks in advance :)
     
  2. Arkhivrag

    Arkhivrag

    Joined:
    Apr 25, 2012
    Posts:
    2,936
    I made Dynamic Radial Masks asset exactly for such "radial" effects. It is just one node implementation inside Shader Graph that calculates common shader mask with values in the range of (0, 1). You can use output of that node in any effect you need: vertex displace, discarding mesh fragments (creating holes), blending shader properties and so on.
     
    Last edited: Oct 23, 2022
  3. Dennooo

    Dennooo

    Joined:
    May 12, 2015
    Posts:
    78
    wow - your asset looks really cool!

    Will it work with URP and the 2d renderer?
     
  4. Arkhivrag

    Arkhivrag

    Joined:
    Apr 25, 2012
    Posts:
    2,936
    It supports all render pipelines and can be integrated into ShaderGraph and Amplify Shader Editor.
     
    Dennooo likes this.