Search Unity

  1. If you have experience with import & exporting custom (.unitypackage) packages, please help complete a survey (open until May 15, 2024).
    Dismiss Notice
  2. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice

Can I pass a shader in LWRP shader graph as parameter?

Discussion in 'Shaders' started by glucosetong, Aug 26, 2019.

  1. glucosetong

    glucosetong

    Joined:
    Aug 10, 2017
    Posts:
    17
    Hi, I am trying to make a shader using shader graph with others shader (written in code). I saw a cool shader asset on asset store and I import it on my LWRP project. I have only one simple function in my shader graph which is distance. (e.g. if distance > value use a color else use another color)

    Is it possible to pass the shader in shader graph?
    P.S I know nothing to code a shader but I know some basic on shader graph.
    btw this is the shader im using (https://assetstore.unity.com/packages/vfx/shaders/minimalist-free-lowpoly-flat-gradient-shader-96148)