Search Unity

Help Wanted Tessellation option in HDRP?

Discussion in 'Shader Graph' started by adamz, Apr 15, 2019.

  1. adamz

    adamz

    Joined:
    Jul 18, 2007
    Posts:
    951
    How do I create a Phong based tessellation shader using Shader Graph?

    Thanks.
     
  2. alexandral_unity

    alexandral_unity

    Unity Technologies

    Joined:
    Jun 18, 2018
    Posts:
    110
    Tessellation is not currently supported in Shader Graph, but it is on our task list and we're working on it.
     
  3. zhuchun

    zhuchun

    Joined:
    Aug 11, 2012
    Posts:
    393
    Yes, please, we need tessellation for weather-related shaders
     
    Nova-Shade likes this.
  4. Horus_Sungod42

    Horus_Sungod42

    Joined:
    Oct 30, 2014
    Posts:
    67
    I'd like to add that having the tesselation node with additional technical information/inputs, like the tesselation amount, the distance where it fades, etc (like Unity did with the HDLit shader) would be kind of essential.

    In Unreal, the tesselation node has few parameters to make it fade with distance (though perhaps it's all handled automatically and I haven't noticed?).

    Would it make sense to add POM as about the same time as tesselation in the Shader Graph?
     
  5. zhuchun

    zhuchun

    Joined:
    Aug 11, 2012
    Posts:
    393
    Oh, that LOD-ish feature would be neat!
     
  6. Horus_Sungod42

    Horus_Sungod42

    Joined:
    Oct 30, 2014
    Posts:
    67
    It's in the standard shader of the HDRP, hopefully it's not unreasonable to get it in the graph.

    I briefly saw an Unreal tutorial which had a fairly complex way to LOD out the tesselation, with a bunch of nodes, but it seemed quite inconvenient. Hence this suggestion to have these features built in!
     
  7. BitAssembler

    BitAssembler

    Joined:
    Jul 13, 2017
    Posts:
    63
    @alexandral_unity Any news on the HDRP shader graph lit tessellation master node? Couldn't find a note on the roadmap.
     
    hippocoder likes this.
  8. hippocoder

    hippocoder

    Digital Ape Moderator

    Joined:
    Apr 11, 2010
    Posts:
    26,078
    I too have use for low level tessellation but not the performance losses that come with typical high level implementations that Unity currently uses.
     
    BitAssembler likes this.
  9. fdiba

    fdiba

    Joined:
    Aug 17, 2018
    Posts:
    4
    Is tessellation now supported in Shader Graph ?
     
  10. rizu

    rizu

    Joined:
    Oct 8, 2013
    Posts:
    1,273
    No.
     
  11. hippocoder

    hippocoder

    Digital Ape Moderator

    Joined:
    Apr 11, 2010
    Posts:
    26,078
    Tags really need to be removed, they just don't help when every post bar maybe 1% is asking for help.
     
  12. francois85

    francois85

    Joined:
    Aug 11, 2015
    Posts:
    828
    Just wondering if we have tessellation yet
     
  13. francois85

    francois85

    Joined:
    Aug 11, 2015
    Posts:
    828
    Just wondering where do I find the LitTessellation shader.
     
  14. francois85

    francois85

    Joined:
    Aug 11, 2015
    Posts:
    828
    Where did u see the road map
     
  15. zhuchun

    zhuchun

    Joined:
    Aug 11, 2012
    Posts:
    393
    It's HDRP/LitTessellation if you're using HDRP
     
  16. francois85

    francois85

    Joined:
    Aug 11, 2015
    Posts:
    828
    Not seeing it , is it platform specific?
     
  17. francois85

    francois85

    Joined:
    Aug 11, 2015
    Posts:
    828
    Here is what im seeing
    Screen Shot 2019-09-11 at 10.01.07 PM.png
     
  18. rizu

    rizu

    Joined:
    Oct 8, 2013
    Posts:
    1,273
    Those are shader graphs, Lit Tessellation is standard HDRP shader. You select it as your shader from your material.
     
  19. francois85

    francois85

    Joined:
    Aug 11, 2015
    Posts:
    828
    Yea I realized after making post :( so this doesn't really help me. Do you know if shader graph will support tessellation
     
  20. rizu

    rizu

    Joined:
    Oct 8, 2013
    Posts:
    1,273
    It does not support it today. I'm sure the SG version is buried somewhere on their "would be nice to have" -list but there's no indication of any kind on current github repository that they are adding this any time soon.
     
  21. francois85

    francois85

    Joined:
    Aug 11, 2015
    Posts:
    828
    Oooo no , this is a problem ... crap
     
  22. hippocoder

    hippocoder

    Digital Ape Moderator

    Joined:
    Apr 11, 2010
    Posts:
    26,078
    You can still pick tess from the base shader if it's any help:
    upload_2019-9-12_16-53-33.png
    It may be sufficient if you can generate the needed textures via custom shader (I do this for water) then feed these into HDRP lit tess.
     
    AlanMattano likes this.
  23. francois85

    francois85

    Joined:
    Aug 11, 2015
    Posts:
    828
    Thanks for pointing that out but unfortunately it will not work since its a custom shader that rides ontop of ECS allowing a paint context where I can paint 100s of different textures.

    here is the prototype

     
  24. francois85

    francois85

    Joined:
    Aug 11, 2015
    Posts:
    828
    Problem is Im trying to move to SRP because Hybrid renderer testing for the build in renderer will fade after 2019.3 But tessellation is not available in SRP soo im not sure what to do here. Any suggestion ?
     
  25. mhazani

    mhazani

    Joined:
    Jun 18, 2014
    Posts:
    13
  26. francois85

    francois85

    Joined:
    Aug 11, 2015
    Posts:
    828
    Thanks for the reply. Do you know if there are any example for Metal tessellation?

    I’m really hoping this get added to the shader graph not sure I have cycles to burn on this
     
  27. mhazani

    mhazani

    Joined:
    Jun 18, 2014
    Posts:
    13
    Presumably the standard shader can cover metallic use cases? But I don't know. And I hear you, SG is very impressive in some ways but still lacking core shading features (stencils, anyone?) That, imo, don't quite catch it up to Unreal's material editor.
     
  28. francois85

    francois85

    Joined:
    Aug 11, 2015
    Posts:
    828
    Im ok with waiting for shader graph to catchup with Unreal material editor. All I really want is some sort of roadmap for what is coming so I can plan accordingly. Ive brought it up before, finger crossed Unity posts some blog with this.
     
  29. Reanimate_L

    Reanimate_L

    Joined:
    Oct 10, 2009
    Posts:
    2,389
    how do you rebuild the normal from the displacement?

    also is there still no update for SG support? @alexandral_unity
     
  30. hippocoder

    hippocoder

    Digital Ape Moderator

    Joined:
    Apr 11, 2010
    Posts:
    26,078
    There's a normal node you can use, but I generated mine with ddx/y
     
  31. Reanimate_L

    Reanimate_L

    Joined:
    Oct 10, 2009
    Posts:
    2,389
    so it's outputing a normal map then?
     
  32. hippocoder

    hippocoder

    Digital Ape Moderator

    Joined:
    Apr 11, 2010
    Posts:
    26,078
    Yes I build 2 textures, height and normal then read them in a tess shader, but can use shader graph's built in height to normal function and skip that step.
     
  33. Reanimate_L

    Reanimate_L

    Joined:
    Oct 10, 2009
    Posts:
    2,389
    But if you use SG then you don't have tess
     
  34. NerdIt-

    NerdIt-

    Joined:
    Oct 19, 2018
    Posts:
    15
    Any tessellation yet?
     
  35. JulinoleumOne

    JulinoleumOne

    Joined:
    Nov 2, 2016
    Posts:
    12

    I cant see it in the latest Beta :(

    upload_2019-10-25_11-6-10.png
     
  36. BitAssembler

    BitAssembler

    Joined:
    Jul 13, 2017
    Posts:
    63
    Why do we get no official words on this matter? When can we expect at least a roadmap point for SG tessellation support? @alexandral_unity ? It would be great if the HDRP guys could be as communicative as the guys in the Unity Teams forum; @ryanc-unity always replies within 24h.
     
  37. francois85

    francois85

    Joined:
    Aug 11, 2015
    Posts:
    828
    My gut feeling is this is in works and will drop in 2019.3 :)
     
  38. francois85

    francois85

    Joined:
    Aug 11, 2015
    Posts:
    828
    Will URP support tessellation with shadergraph
     
  39. rizu

    rizu

    Joined:
    Oct 8, 2013
    Posts:
    1,273
    I highly doubt 2019.3 is getting this on SG, there's zero work done for this on the SRP github, wip branches usually arrive well beforehand there + pretty certain 2019.3's HDRP featureset is locked already in a way it'll not get bigger changes like this easily anymore.

    I'd say at some point in 2020 earliest would be more realistic estimate but even that is bit unclear because this doesn't seem to be very high priority task for HDRP team.
     
  40. francois85

    francois85

    Joined:
    Aug 11, 2015
    Posts:
    828
    That’s a bit depressing. Ok we bill have to work around this somehow, juggling so much tech and can’t get them all to fit. Is there some sort of feature comparison table for build in render hybrid render URP and HDRP.
     
unityunity