Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Help with ShaderToy conversion (multipass)

Discussion in 'Shaders' started by mite51, Apr 8, 2019.

  1. mite51

    mite51

    Joined:
    Jun 25, 2015
    Posts:
    23
    Thanks to Przemyslaw_Zaworski last time I got help converting a ShaderToy shader to work in Unity. This time I'm converting a multipass shader, https://www.shadertoy.com/view/4tGfDW, but its unclear to me how to get this working in Unity. I've tried to use something called a GrabPass (https://gamedev.stackexchange.com/questions/147425/unity-combining-passes-in-shader), but that doesn't seem to be working. I've tried to give the material a render texture, but that did nothing. Is there a good guide somewhere that might help me hook up something like this multipass shader?

    I've attached an untested but converted version of the shader if that helps.

    Thanks for your time.
    J
     

    Attached Files:

  2. Przemyslaw_Zaworski

    Przemyslaw_Zaworski

    Joined:
    Jun 9, 2017
    Posts:
    327
    I will send a solution, soon.
     
  3. Przemyslaw_Zaworski

    Przemyslaw_Zaworski

    Joined:
    Jun 9, 2017
    Posts:
    327
    Project was sent.

    upload_2019-4-8_14-4-10.png
     
  4. sbfhhh

    sbfhhh

    Joined:
    May 9, 2014
    Posts:
    3
    could you send me this solution? thanks a lot! sbfhhh@gmail.com
     
  5. Przemyslaw_Zaworski

    Przemyslaw_Zaworski

    Joined:
    Jun 9, 2017
    Posts:
    327