Search Unity

  1. Unity 2020.1 has been released.
    Dismiss Notice
  2. We are looking for feedback on the experimental Unity Safe Mode which is aiming to help you resolve compilation errors faster during project startup.
    Dismiss Notice
  3. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

HDRP Shadergraph Fabric documentation or demonstrations?

Discussion in 'Graphics Experimental Previews' started by Joshua_strawchildgames, Dec 14, 2018.

  1. Joshua_strawchildgames

    Joshua_strawchildgames

    Joined:
    May 27, 2017
    Posts:
    60
    Hey folks, I've been experimenting with the Fabric shader with shader graphs with HDRP, but I can't seem to get something looking remotely fabric. The options they provide seem straight forward but I can't get the effect of fabric. So I'm obviously missing some information on how best to do this, but I can't find any documentation for Fabrics in Shader Graph, or any demonstrations.

    Would any of you guys happen know any resources that would help me in this learning endeavor?
     
  2. Grimreaper358

    Grimreaper358

    Joined:
    Apr 8, 2013
    Posts:
    699
    For Fabric, you need to set values for the normal map, specular color, as well as smoothness and this should give you a good result.

    Result
    upload_2018-12-14_11-43-41.png

    Quick and dirty shader setup
    upload_2018-12-14_11-45-18.png
     
    GANGSTA27, irenya, osss and 3 others like this.
  3. whoisgliese

    whoisgliese

    Joined:
    Jun 4, 2020
    Posts:
    5
    What's the difference between the fabric shader and a regular hdrp shader with a fabric texture as an albedo map?
     
    Last edited: Aug 1, 2020
  4. Grimreaper358

    Grimreaper358

    Joined:
    Apr 8, 2013
    Posts:
    699
    The Fabric Shader has special built-in functions to make your material look more like fabric and reacts to lights differently than the lit shader. Cotton, Silk are the two built-in ones that will basically cover all types of fabric in terms of look. It can also use a specialized reflection probe for better quality.

    Same with the eye shader, and decal shader. They are just more tailored towards their intended use than a generic Lit Shader if you are going for quality/realism. You could just use the lit shader on everything to save on shader variants and performance (or try to fake things a bit) with a lower quality look.
     
  5. rz_0lento

    rz_0lento

    Joined:
    Oct 8, 2013
    Posts:
    1,675
    This is pretty old thread but for what it's worth, there are samples now shipped with the HDRP package.

    Just open Package Manager and navigate to HDRP package, there should be Material Samples listed there.
     
unityunity