Search Unity

Nodes for Shader Graph

Discussion in 'Assets and Asset Store' started by Andrey_Graphics, Aug 2, 2018.

  1. Bravojr

    Bravojr

    Joined:
    Jan 28, 2015
    Posts:
    4
    Hey there! I just purchased your asset as I'm really eager to get my hands on parallax occlusion mapping in the Lightweight render pipeline. Having some issues getting it to work though.
    Using unity 2018.3.0f2, Lightweight RP 4.6.0.
    I have replaced the Light Attenuation node as instructed in the readme. I have also tried re-saving the shader graphs, but most of the materials are still pink in the inspector, and some are rendered as pink in the viewport.
    Am I missing something fundamental here? :)
     

    Attached Files:

  2. Andrey_Graphics

    Andrey_Graphics

    Joined:
    Oct 29, 2015
    Posts:
    140
    Hello, look in the folder " Nodes " file " LightAttenuation for SRP v4 or higher.unitypackage" and import files from it
     
  3. Joshua_strawchildgames

    Joshua_strawchildgames

    Joined:
    May 27, 2017
    Posts:
    60
    Using HDRP, this doesn't work.
    Getting two errors with most of the shaders.

    unrecognized identifier 'i'
    unrecognized identifier 'LightDirection'

    Both in the d3d11
     
    P_Jong likes this.
  4. Andrey_Graphics

    Andrey_Graphics

    Joined:
    Oct 29, 2015
    Posts:
    140
    Hello, thanks for reporting this issue, I fixed the node. Replace this file in the "Nodes" folder, and then open the shaders using Shader graph.
    Happy New Year
     

    Attached Files:

    P_Jong likes this.
  5. Sisay

    Sisay

    Joined:
    Dec 6, 2012
    Posts:
    57
    upload_2019-1-4_18-0-1.png
    Lwrp skin and sss not work, when replace lightdirectionnode.cs 11directx error
     
  6. Andrey_Graphics

    Andrey_Graphics

    Joined:
    Oct 29, 2015
    Posts:
    140
    Hello, you need to import the file "LightAttenuationNode.cs "from the file" LightAttenuation for SRP v4 or higher". Then open the Shader with shader graph.
     
  7. Sisay

    Sisay

    Joined:
    Dec 6, 2012
    Posts:
    57
    I know, import this file, open shader(in graph is ok) save and still pink and error
     
  8. Andrey_Graphics

    Andrey_Graphics

    Joined:
    Oct 29, 2015
    Posts:
    140
    After importing, do you have the same error or another one? if it's the same, try replacing the file with this one in Windows Explorer, unity may not have imported it correctly. Or remove this node from the Shader in shader graph.
    UPD.
    I looked and found another mistake there, I'm fixing it.
    Sorry that is not immediately answered, me turned off the electricity.
     

    Attached Files:

    Last edited: Jan 4, 2019
  9. Sisay

    Sisay

    Joined:
    Dec 6, 2012
    Posts:
    57
    upload_2019-1-5_12-59-30.png
    In unity shader is ok, now compilation android error
     
  10. Andrey_Graphics

    Andrey_Graphics

    Joined:
    Oct 29, 2015
    Posts:
    140
    I will probably remove this node for unity 2018.3 until the SRP developers fix the bugs, the scripts were all right, written in the same way as in the source SRP, (in SRP libraries have Light Attenuation) but it works very strange and with errors in new versions, for this some time it is better not to use the node Light Attenuation.
    If you also have it does not work, it is better to remove it from the Shader, sorry but I could not find another option, these nodes depend on SRP, but I am not a developer of SRP and can not change the SRP.
    Sorry for my bad English.
     
    Last edited: Jan 5, 2019
  11. Nemzoff

    Nemzoff

    Joined:
    Mar 29, 2016
    Posts:
    1
    Hey man, I bought your assets but didnt have the chance to use them yet
    The question that I have is what does the Range node do? Can I use it to detect intersections or is it something completely different? Some kind of documentation would have helped
    Thank you
     
  12. Andrey_Graphics

    Andrey_Graphics

    Joined:
    Oct 29, 2015
    Posts:
    140
    Hello, this is a procedural shape, you can see how it is made in shader graph, if you open this node


    upload_2019-1-22_14-36-33.png upload_2019-1-22_14-36-48.png
     

    Attached Files:

    • adf.png
      adf.png
      File size:
      26.4 KB
      Views:
      764
  13. XCO

    XCO

    Joined:
    Nov 17, 2012
    Posts:
    380
    Hello :)

    May I ask, do you think you can include a shader that works like MORPH 3D shader where it masks a part of the skin underneath the clothing ? For HDRP ?

    TY so much
     
  14. Andrey_Graphics

    Andrey_Graphics

    Joined:
    Oct 29, 2015
    Posts:
    140
    Hello, you mean to control the morphs with a shader? as this asset ?
    https://assetstore.unity.com/packages/tools/animation/mesh-transformation-120144
    One Shader can not do this, you also need a script that will transfer data from SkinnedMeshRenderer to the shader.
    For HDRP this can be done but it is difficult.
     
    XCO likes this.
  15. XCO

    XCO

    Joined:
    Nov 17, 2012
    Posts:
    380
    I just need some sort of a "masking" shader to mask parts of the skin when the clothing is applied.
     
  16. Andrey_Graphics

    Andrey_Graphics

    Joined:
    Oct 29, 2015
    Posts:
    140
    I do not quite understand what you need, I can make you a Shader to order, it is better to write in the mail industrialforest@mail.ua
     
    XCO likes this.
  17. jjobby

    jjobby

    Joined:
    Nov 28, 2009
    Posts:
    161
    Is it possible to do dithering effect that fade based on camera view distance like in Amplify?
     
  18. Andrey_Graphics

    Andrey_Graphics

    Joined:
    Oct 29, 2015
    Posts:
    140
    Hello, how's that video?
     
  19. Andrey_Graphics

    Andrey_Graphics

    Joined:
    Oct 29, 2015
    Posts:
    140
    A Shader graph already have such a node
    upload_2019-2-2_15-43-47.png upload_2019-2-2_15-45-7.png
     
  20. jjobby

    jjobby

    Joined:
    Nov 28, 2009
    Posts:
    161
    Thank you for your reply. I'm not sure if you also own Amplify but I actually mean the example scene DitheringFade in Amplify.
     
  21. Andrey_Graphics

    Andrey_Graphics

    Joined:
    Oct 29, 2015
    Posts:
    140
    I have ASE and this scene, this can be done in Shader Graph, with dither node.
    If you need a certain noise to do it, I can personally make a node for you, this node is simple.
    upload_2019-2-2_23-56-11.png upload_2019-2-3_0-2-58.png
     
  22. jjobby

    jjobby

    Joined:
    Nov 28, 2009
    Posts:
    161
    I'm currently considering to switch to use Shader Graph because it seems to support HDRP better than Amplify. If I do, then I will probably buy your asset. Based on your experience, can Shader Graph do every feature like in Amplify? Also, do you intend to create something like fur shader? I don't really want a super realistic fur. But I saw some technique using Parallax Occlusion Mapping to simulate fur. I see that you have already had Parallax Occlusion Mapping node. Amplify also has it but my knowledge of shader is very limit. So, I don't have any idea how to apply this technique at all.

    If I don't misunderstand, I think it should look like this.


    Edit: Another question, does your vegetation shader support touch bending? It's something like this.
    https://twitter.com/Patrickd3/status/974284520328433666
    https://twitter.com/Juicefoozle/status/974026650794020869
     
    Last edited: Feb 3, 2019
  23. Andrey_Graphics

    Andrey_Graphics

    Joined:
    Oct 29, 2015
    Posts:
    140

    Personally, I mostly use ASE, it has a lot of features, but in HDRP I rarely do anything, fur is usually made a special Shader for fur, there parallax is not suitable, but I used my fast parallax in shader graph with iterations to make fine grass, and mixed with large geometric grass in LowPoly style (for my game).
    The vegetation Shader does not support touch bending.
     
    florianBrn likes this.
  24. MechaWolf99

    MechaWolf99

    Joined:
    Aug 22, 2017
    Posts:
    294
    Hey, thanks for making this. I was wondering if there was any update on getting the Light Attenuation Node in?
     
  25. Andrey_Graphics

    Andrey_Graphics

    Joined:
    Oct 29, 2015
    Posts:
    140
    Hello, because of the instability of srp and shader graph, I can not add yet this node, but you can find it on GitHub by clicking on the link.
    https://gist.github.com/ciro-unity/a55d73bcda93ca149cf7fd7e407f8812
     
  26. HunterNacho338

    HunterNacho338

    Joined:
    Aug 30, 2015
    Posts:
    17
    That vegetation shader is pretty sweet!
     
    P_Jong and Andrey_Graphics like this.
  27. apan-bin

    apan-bin

    Joined:
    May 15, 2015
    Posts:
    29
    Why does it work like this when I open the skin material?
     

    Attached Files:

  28. apan-bin

    apan-bin

    Joined:
    May 15, 2015
    Posts:
    29
    Sorry, it's a shadow problem.
     
    P_Jong likes this.
  29. ColaLee

    ColaLee

    Joined:
    May 10, 2017
    Posts:
    3
    :):):)I find it
     
  30. ColaLee

    ColaLee

    Joined:
    May 10, 2017
    Posts:
    3
    emmmm......

    Vegetation Shader can no longer work Wind Zone.
     
  31. Alexander_T_

    Alexander_T_

    Joined:
    Mar 5, 2018
    Posts:
    7
    Shader graph does not support the wind zone, it should not work, you need to write to the developers of Shader graph
     
  32. Toykrayon

    Toykrayon

    Joined:
    Sep 8, 2017
    Posts:
    4
    Hi, I bought this yesterday. The SSS node for ASE is nice!
    Would you mind to share the Light Attenuation Node for ASE?
    I would like to give it try, if you wouldn't.

    Here is a quick test of SSS node for ASE. I used images instead of colors.
     
  33. Andrey_Graphics

    Andrey_Graphics

    Joined:
    Oct 29, 2015
    Posts:
    140
    Hello, thank you, you are good at it, I will do when I'm free, if this node will work in new versions then I will add
     
  34. Toykrayon

    Toykrayon

    Joined:
    Sep 8, 2017
    Posts:
    4
    Thanks for responding! I'm looking forward to it.

    Here is another test. The node setting is just a reproduction of the skin shader included in the asset, but on ASE.

     
  35. petersx

    petersx

    Joined:
    Mar 5, 2015
    Posts:
    239
    sorry, but this is a wrong direction with subsurface scattering - try HDRP
     
  36. witson

    witson

    Joined:
    Feb 17, 2015
    Posts:
    10
    Hello! Does the current version work in Unity 2019.1 and HDRP version 5.13? Unpacked a unitypackage for HDRP and downloaded 2 files from the messages above. Unfortunately a large number of errors. Thx
     

    Attached Files:

  37. Andrey_Graphics

    Andrey_Graphics

    Joined:
    Oct 29, 2015
    Posts:
    140
    View attachment 409855
    Hello, no, tomorrow will start to fix, I'll let you know when I make the update
     
    witson likes this.
  38. Toykrayon

    Toykrayon

    Joined:
    Sep 8, 2017
    Posts:
    4
    Hi, thanks for the respond. Your suggestion was an eye-opener. In hinder sight, I thought I made a too huge shader for the purpose. I will look into HDRP.
     
  39. Andrey_Graphics

    Andrey_Graphics

    Joined:
    Oct 29, 2015
    Posts:
    140
    Updated, Fixed all of the nodes and the added node Light Attenuation, please remove and download the new version of the asset to avoid errors. Soon to be another update associated with a node Light Direction, Parallax and LightAttenuation for HDRP.
     
  40. DigitalAdam

    DigitalAdam

    Joined:
    Jul 18, 2007
    Posts:
    1,204
    @Andrey_Graphics

    Hi, so I created a new project for Unity 2019.1.0f2, upgraded to HDRP 5.13.0, and installed your latest asset. When I load your HDRPNodesDemo scene, and there seems to be some errors. Here is a screenshot:

    screenshot.jpg
     
  41. Andrey_Graphics

    Andrey_Graphics

    Joined:
    Oct 29, 2015
    Posts:
    140
    Hello, I did not have time to finish everything, sorry, in the next update everything will be fine.
     
  42. DigitalAdam

    DigitalAdam

    Joined:
    Jul 18, 2007
    Posts:
    1,204
    Thanks for letting me know.
     
  43. Andrey_Graphics

    Andrey_Graphics

    Joined:
    Oct 29, 2015
    Posts:
    140
    If someone there are errors associated with the nodes LWRP, update LWRP to the latest version.
     
    Last edited: May 1, 2019
  44. Kamil-Sobierajski

    Kamil-Sobierajski

    Joined:
    Dec 14, 2016
    Posts:
    44
    Hello.
    This script works pretty fine on my unity 2018.2 projects.
    But when I need to switch to unity 2019.1, they have some errors. So I can't use shader graph witch them.
    I updated the shader graph and LRP to the last version and I have a fresh project where I test this.
    I use LRP and I check all the settings.
    When I add all the package it gets something like 21 errors.
    So I added only one node witch light direction (The most crucial for me right now).
    This makes only 2 errors.



    Maybe someone has some tips for me.
     
  45. Andrey_Graphics

    Andrey_Graphics

    Joined:
    Oct 29, 2015
    Posts:
    140


    Unity developers have made a new way to create Custom nodes, I have redone all the nodes, the scripts will not work on the 2019 version, you need to download the package version for 2019. Since the new asset store does not work correctly, I recommend that you first remove the package in this path -
    C:\Users\Name\AppData\Roaming\Unity\Asset Store-5.x\Andrey Graphics\Shaders

    And then download the new version from the Asset store directly from Unity 2019
     
  46. Kamil-Sobierajski

    Kamil-Sobierajski

    Joined:
    Dec 14, 2016
    Posts:
    44
    I do as you say. I delete the asset store file from my disc. I download them again from 2019.1 and it still makes a lot of problems.
    upload_2019-5-30_17-2-20.png
     
  47. Andrey_Graphics

    Andrey_Graphics

    Joined:
    Oct 29, 2015
    Posts:
    140
    Do you have LWRP version 5.13 installed? and Shader Graph version 5.13? this is the latest version, if you have 5.7.2 then I strongly recommend to update, 5.7.2 works very badly, unity developers themselves write that this version is bad and it needs to be updated.
     
  48. Kamil-Sobierajski

    Kamil-Sobierajski

    Joined:
    Dec 14, 2016
    Posts:
    44
  49. Andrey_Graphics

    Andrey_Graphics

    Joined:
    Oct 29, 2015
    Posts:
    140
    Strangely, the error is written 5.7.2, I have 5.13 works well, soon to be updated, I have already sent to asset store
    upload_2019-5-30_18-40-4.png
     
  50. Kamil-Sobierajski

    Kamil-Sobierajski

    Joined:
    Dec 14, 2016
    Posts:
    44
    Awesome. Thanx!