Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

HDRP Eye Shader ???

Discussion in 'Graphics Experimental Previews' started by Davood_Kharmanzar, Aug 21, 2018.

  1. Davood_Kharmanzar

    Davood_Kharmanzar

    Joined:
    Sep 20, 2017
    Posts:
    411
    how can i making an eye shader [Parallax displacement + occlusion] for HDRP??

    or does exists an method to convert non HDRP to HDRP? [like as ADAM EP3 characters eye shader to HDRP]

    View attachment 292920
     
    Last edited: Aug 24, 2018
  2. Davood_Kharmanzar

    Davood_Kharmanzar

    Joined:
    Sep 20, 2017
    Posts:
    411
    anybody there?? :\
     
  3. Grimreaper358

    Grimreaper358

    Joined:
    Apr 8, 2013
    Posts:
    789
    you could have a really similar effect with the default Lit shader and a few materials. You just need to have a few meshes for the eyes layered then apply different materials to each and adjust the settings of each to get the look.

    upload_2018-8-22_9-35-44.png
     
  4. Davood_Kharmanzar

    Davood_Kharmanzar

    Joined:
    Sep 20, 2017
    Posts:
    411
    so ... what about parallax displacement?
     
  5. Grimreaper358

    Grimreaper358

    Joined:
    Apr 8, 2013
    Posts:
    789
    You just have to change the displacement mode to Pixel Displacement, add your height map, and adjust settings

    upload_2018-8-22_9-48-13.png
     
  6. Grimreaper358

    Grimreaper358

    Joined:
    Apr 8, 2013
    Posts:
    789
    Low value
    upload_2018-8-22_9-49-27.png

    High Value
    upload_2018-8-22_9-50-22.png
     
  7. Grimreaper358

    Grimreaper358

    Joined:
    Apr 8, 2013
    Posts:
    789
    Later on, you will be able to make your own shader with shader graph when the Lit master node is added and I think an Eye shader will be made by the devs for HDRP at some point along with, Cloth and a Hair shader.
     
  8. Davood_Kharmanzar

    Davood_Kharmanzar

    Joined:
    Sep 20, 2017
    Posts:
    411
    nice ... thanks alot ...

    i tried layered lit shader to making an cornea transparent layer over of eye ... but i can't produce it !! do you have any suggestion? :]
     
  9. Grimreaper358

    Grimreaper358

    Joined:
    Apr 8, 2013
    Posts:
    789
    that would be a separate mesh with another materials that's transparent
    upload_2018-8-22_13-50-58.png

    upload_2018-8-22_13-52-50.png

    This is how you will have to do it for now
     
  10. Davood_Kharmanzar

    Davood_Kharmanzar

    Joined:
    Sep 20, 2017
    Posts:
    411
    thanks ... so, means that this can't be done by layered lit shader?
     
  11. Grimreaper358

    Grimreaper358

    Joined:
    Apr 8, 2013
    Posts:
    789
    It should be possible but I think you might have to do some vertex painting for it to work properly. I'll have to mess around and see.
     
  12. Davood_Kharmanzar

    Davood_Kharmanzar

    Joined:
    Sep 20, 2017
    Posts:
    411
    Last edited: Aug 23, 2018