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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    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:
    314
    I will send a solution, soon.
     
  3. Przemyslaw_Zaworski

    Przemyslaw_Zaworski

    Joined:
    Jun 9, 2017
    Posts:
    314
    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:
    314